VarType - Built-in Miscellaneous Function¶
Purpose¶
VarType returns an integer indicating the type of expression.
Syntax¶
VarType(exp)
Arguments¶
| Argument | Description |
|---|---|
exp |
Required. Any valid expression |
Returns¶
Integer
| Expression | Returns |
|---|---|
| Empty, only defined variable | 0 |
| Cint(123.4) | 3 |
| 1234.5 | 5 |
| Ccur(12.78) | 6 |
| Now() | 7 |
| 'abc' | 8 |
| 1<2 | 11 |
Example¶
let iTest = cint(123.456)
return vartype(iTest) // returns 3 (= "Integer")
Notes¶
- The return value conforms to the standards for variant datatypes