%GetValueType function


Function

The function gets back a value type that has been set as a parameter.

Declaration
INT %GetValueType(
   UNIVAL in value
 )
Parameters
valueValue (variable or expression).
Return value
Value type which has been set as a parameter.
Description
Possible return values:

Return valueConstantValue description
1@VTYPE_BoBoolean
3@VTYPE_ReReal
2@VTYPE_IntInteger
7@VTYPE_TmAAbsolute time
8@VTYPE_TmRtime interval
9@VTYPE_TxtText
0@VTYPE_NANNo type
Example
 TEXT _var
 
 INT _expValueType
 INT _varValueType
 
 _expValueType := %GetValueType("text value")
 _varValueType := %GetValueType(_var)
Napíšte komentár