Returns the type of variable, as determined at compilation, as a string.
VARTYPE(variable)
variable A string containing the name of the variable whose type is to be returned.
VARTYPE returns the following string:
type scope {rows {columns}}
where:
type One of the following:
V Simple variable or dynamic array.
D Dimensioned array.
U Undefined variable.
scope The scope of the variable, as follows:
0 Local.
1 Global common.
>=2 Named common. The value specifies which named common section contains the variable, in order of declaration in the program.
rows The number of rows in a dimensioned array.
columns The number of columns in a dimensioned array.
type, scope, rows and columns are separated by spaces in the string returned.
See also the descriptions of the VARVAL and VARVALTYPE functions and the VARVALSET statement.