Function Type() Foundation
Determines the data type of an expression.
Type( <cExpression> ) --> cType
The return value of Type() is one or two characters which specify the data type of the value of <cExpression>. The following table lists the possible data types and return values of Type():
|Return value||Data type|
|U||NIL or unknown|
|UE||Syntactically faulty expression|
Type() is a debugging function which determines the data type of an expression passed in the form of a character string. Type() returns a character string identifying the data type. The function determines the data type using the macro operator (&), which means the character expression is executed and the data type of the result determined. Type() differs from the function Valtype(). Valtype() determines the data type directly so can also determine the data type of variables declared as LOCAL or STATIC.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.