Function DataType() Foundation

Determines the data type of a value or an expression as a numeric value.

Syntax
DataType( <xValue> ;  // Type: Any
        ) --> nDatatype
Return

Returns a numeric value that corresponds to a #define constant found in XBTMISC.CH

Return values of DataType()
Constant Description
TYPE_UNDEF Undefined (NIL)
TYPE_STR String
TYPE_NUM Numeric
TYPE_LOG Logic
TYPE_DATE Date
TYPE_MEMO Memo
TYPE_ARRAY Array
TYPE_OBJECT Object
TYPE_BLOCK Code block

Feedback

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.