VARVALTYPE Function

Returns the data type of the current value of a variable.

Syntax

VARVALTYPE(variable)

Syntax Elements

variable A string containing the name of the variable whose data type is to be returned.

Operation

VARVALTYPE returns a type character, as follows:

00 Cleared, unassigned variable.

01 Scaled binary number.

02 Short string.

04 File variable.

81 String number.

82 Indirect string.

U Undefined.

See also VARTYPE and VARVAL functions, and the VARVALSET statement.

Go to top button