VariableClass

(Engine-Level Function)

Description: Returns the class of a variable.
Returns: Numeric
Usage: Script Only.
Function Groups: Variable
Related to: SetVariableClass
Format:  VariableClass(Variable)
Parameters:  
Variable
Required. Any expression for the variable value.
Comments: This function may only appear in a script.

Example:

The following sets the variable "class" to the class of variable newVar.

If ! Valid(class);
[
  class = VariableClass(FindVariable("newVar", Self(), 0, 1));
]

Find the class of Alarm Priority tags:

Class = VariableClass(FindVariable("AlarmPriority", Code, 0, 0));