Variant.Type Function

Returns an Integer, indicating the data type of the Variant. If the Variant is not Nil, it provides the same functionality as the VarType global function.

Syntax
result = Variant.Type( )

Return Value
Result | Integer

# Notes

See the table of data types for the VarType function. You can use the Variant class constants instead of the integer values to determine the data type. They are:

TypeBoolean

TypeColor

TypeDate

TypeDouble

TypeInteger

TypeLong

TypeNil

TypeObject

TypeSingle

TypeString