User Tools

Site Tools


en:typeof

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
2016/08/13 13: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

History

1.99.99.8New To Version
en/typeof.txt · Last modified: 2017/08/20 13:34 by junior-root