TYPE |
type = TYPE( var-name AS VARIANT ) AS INTEGER
Returns the type of the variable as an INTEGER. Types are defined as follows:
CONST MB_DT_UNKNOWN = 0 CONST MB_DT_INTEGER = 1 CONST MB_DT_REAL = 2 CONST MB_DT_STRING = 3 CONST MB_DT_REFERENCE = 4 CONST MB_DT_MODULE = 5 CONST MB_DT_HANDLE = 6
Example:
DIM itype AS INTEGER DIM nisse AS STRING
itype = TYPE( nisse ) ' This will return 3
PRINT "Variable ";VARNAME( nisse );" is of type ";itype,
|