GetType
Use this function to identify the variable type of a specified variable. The variable type is returned as a string.
Possible return values include the following:
- NUM
- STRING
- RANGE
- NUMLIST
- STRINGLIST
- OBJECT
- OBJECTLIST
For more information on variables, see Create Variable.
Syntax:
GETTYPE ("VariableName")
where:
- VariableName is the name of the variable whose type you would like to identify.
Syntax example:
Create Variable nCount as NUM
Create Variable sType as STRING
Set Variable sType = GETTYPE("nCount")
Show Message "The variable nCount is of type $sType$"
Syntax example:
Create Variable oEmployee as Object
Create Property oEmployee.ID as Num
Set Variable propType = GETTYPE (oEmployee)
Set Variable propType = GETTYPE (oEmployee.ID)
Show Message "The property oEmployee.ID is of type $sType$"