This is an old revision of the document!
typeof ( expression )
typeof ( variable )
returns positive_integer_value
Returns a number representing the type of value that was passed.
Return Values | |
---|---|
Value | Type |
0 | Unassigned Variable |
1 | Integer |
2 | Decimal Number |
3 | String |
4 | Array Variable |
print typeof(a) print typeof(1) print typeof(42.345) print typeof("stuff") dim b(99) print typeof(b)
Will display something like
0 1 2 3 4
1.99.99.8 | New To Version |