TYPE( ) Function

Example   See Also

Evaluates an expression and returns the data type of its contents.

Syntax

TYPE(cExpression)

Returns

Character

Arguments

cExpression

Specifies the expression to be evaluated, which can be a variable, field, memo field, or any other expression. The expression must be passed as a character string; place quotation marks around the names of memory variables, fields, and so on. If you do not place quotation marks around the expression, the TYPE( ) function returns "U" (undefined expression).

Remarks

The following table lists the character values TYPE( ) returns and their corresponding data types:

Data type Character returned
Character C
Numeric (also float, double, and integer) N
Currency Y
Date D
DateTime T
Logical L
Memo M
Object O
General G
Screen (created with SAVE SCREEN) S
Undefined type of expression U