ISARRAY(expression)
ISDATE(expression)
ISEMPTY(expression)
ISNULL(expression)
ISNUMERIC(expression)
ISOBJECT(expression)
Description
The Is functions return TRUE if a variable type corresponds to the function call, FALSE is returned otherwise. The required parameter, expression, is the variable whose type status is being determined.
Example
REM Is Functions Example
DIM Children(3), Chef, When
TestVariable Children
Chef = 1
TestVariable Chef
When = NOW
TestVariable When
SUB TestVariable(var)
IF ISARRAY(var) THEN
PRINT "The variable is an array."
ELSEIF ISDATE(var) THEN
PRINT "The variable is a date."
ELSEIF ISNUMERIC(var) THEN
PRINT "The variable is a number."
END IF
END SUB
Output
The variable is an array.
The variable is a number.
The variable is a date.
Related Items
TYPENAME, VARTYPE