Type()
Determine the type of an expression or variable.
Syntax
Type(<cExp>) --> cType
Arguments
<cExp> --> is a character expression whose type is to be determined.
<cExp> --> can be a field, a variable or an expression of any type.
Returns
Type() returns one of the following characters:
|
Type() Return Values | |
|
Returns |
Meaning |
|
A |
Array |
|
C |
Character string or transaction number |
|
D |
Date |
|
L |
Logical |
|
N |
Number |
|
U |
Nil or unknown value |
Description
Type() is a system function that returns the type of the specified expression or variable.
Examples
Declare cMyVar Type String
Type('cMyVar')
* Result: 'C'
____________________________
Related Topics: