VarType Function
Used to determine the data type of a variable.
Syntax
result = VarType( value )
Parameters | ||
value |
Value to be typed. |
Notes
Result takes on the following values:
Result | Description |
0 | Nil |
2 | Integer |
5 | Double or Single |
7 | Date |
8 | String |
9 | Object |
11 | Boolean |
16 | Color |
Please note that some earlier versions of REALbasic returned 13 for Object.
Example
The following line of code returns 8 (data type of String):
See Also
Variant class, Boolean, Color, Double, Integer, Single, String data types; IsNumeric function.