Documentation

vartype

Syntax: %vartype(varname,type)

Returns the current type of a variable. If the optional type is specified, then the variable is changed to the indicated type. Do not include the @ character in the name of the variable. Here is a list of the variable type values:

0 - Autotype
1 - Integer
2 - Expanded string
3 - Literal string
4 - String list
5 - Database variable
6 - Array
7 - Floating point
8 - COM reference

Example

a=1
#CALL %vartype(a,7)
changes @a to be a floating point variable instead of the default autotype.

Add comment

Login or register to post comments