%GetValueType function


Function
The function gets back a value type which has been set as parameter.
Declaration
INT %GetValueType(
   UNIVAL in value
 )

Parameters
value Value (variable or expression).

Return value
Value type which has been set as parameter.
Description
Possible return values:

Return value Constant Value description
1 @VTYPE_Bo Boolean
3 @VTYPE_Re Real
2 @VTYPE_Int Integer
7 @VTYPE_TmA Absolute time
8 @VTYPE_TmR time interval
9 @VTYPE_Txt Text
0 @VTYPE_NAN No type

Example
 TEXT _var
 
 INT _expValueType
 INT _varValueType
 
 _expValueType := %GetValueType("text value")
 _varValueType := %GetValueType(_var)