SetVariableType

(Engine-Level Function)

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 Only.
Function Groups Compilation and On-Line Modifications,  Variable
Related to: GetVariableType | CrossReference
Format: SetVariableType(Variable, Value)
Parameters  
Variable  
Required. A Variable handle, such as would be returned from the FindVariable or AddVariable functions.
Value
Required. 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.