User Tools

Site Tools


en:typeof

This is an old revision of the document!


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

History

1.99.99.8New To Version
en/typeof.1503261241.txt.gz · Last modified: 2020/02/28 10:46 (external edit)