VALTYPE()
Retrieves the data type of an expression
- Syntax
-
- VALTYPE( <xExp> ) --> <cReturnType>
- Arguments
-
- <xExp> is any valid expression.
- Returns
-
- <cReturnType> a character indicating the type of the passed expression.
- Description
-
- This function returns one character which represents the date type of the argument.
Examples
See Test
Tests
function Test()
? ValType( Array( 1 ) ) --> "A"
? ValType( {|| 1 + 1 } ) --> "B"
? ValType( "HARBOUR" ) --> "C"
? ValType( Date() ) --> "D"
? ValType( .T. ) --> "L"
? ValType( 1 ) --> "N"
? ValType( TBrowse() ) --> "O"
? ValType( NIL ) --> "U"
return nil
- Status
- Ready
- Compliance
-
- VALTYPE() is fully CA-Clipper compliant.
- Files
-
- Library is rtl
- See Also