User Tools

Site Tools


en:typeof

This is an old revision of the document!


TypeOf (Function)

Format

typeof ( expression )
typeof ( variable )

returns positive_integer_value

Description

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

Return Values
ValueType
0Unassigned Variable
1Integer
2Decimal Number
3String
4Array Variable

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.1451714325.txt.gz · Last modified: 2020/02/28 10:46 (external edit)