SetVariableClass

Description:              This function sets the class number of a variable and returns its previous class number.

Returns:                    Numeric

Usage:                   Script

Format:                      SetVariableClass(Variable, Class)

Parameters:             Variable    { Variable }  { required }  { no default: }

                                                Any expression for the variable to set.

                                    Class    { numeric }  { required }  { no default: }

                                                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.

See Also:

VariableClass