SetVariableClass

(Engine-Level Function)

Description: Sets the class number of a variable and returns its previous class number.
Returns: Numeric
Usage: Script Only.
Function Groups: Compilation and On-Line Modifications, Variable
Related to: VariableClass
Format: SetVariableClass(Variable, Class)
Parameters:  
Variable
Required. Any expression for the Variable to set.
Class
Required. Any numeric expression for the class. It must be in the range of 0 to 65535.
Comments: The class number for a variable defaults to 0.

Example:

If ! classSetFlag;
[
  SetVariableClass(FindVariable("newVar", Self(), 0, 1), 20);
  classSetFlag = 1;
]

This sets the class of variable newVar to 20.