SetVariableType

Description:              Sets the data type for the variable, so that only values of that data type can be stored in the variable.

Warning:                   This statement should be used by advanced users only.

Returns:                    Nothing

Usage:                   Script

Format:                      SetVariableType(Variable, Value)

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

                                                A variable handle, such as would be returned from the FindVariable or AddVariable functions.

                             Value    { Integer }  { required }  { no default }

                                      The type that values put into this variable should be cast to.

Comments:               Casts the variable’s value to the given type. If the cast cannot be performed, the variable’s type will be set to Invalid.

                                     The implementation of this function is very similar to SetVarMetadata.

Example:

 

See Also:

GetVariableType | CrossReference