Table of Contents

TypeOf (Function)

Format

typeof ( expression )
typeof ( variable )

returns integer_expression

Description

Returns a number representing the type of value that was passed.

Return Values
ConstantValueType
TYPE_UNASSIGNED0Unassigned Variable
TYPE_INT1Integer
TYPE_FLOAT2Decimal Number
TYPE_STRING3String
TYPE_ARRAY4Array Variable
TYPE_REF5Variable Reference
TYPE_MAP6Map
2016/08/13 14:25 · admin

Example

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

See Also

2016/01/01 22:42

History

1.99.99.8New To Version
2.0.0.0Added Map