Sets any variable in a loaded Fluid script.
Parameter | Description |
---|---|
Script | Pointer to a Fluid script. |
Name | The name of the variable to set. |
Type | A valid field type must be indicated, e.g. FD_STRING , FD_POINTER , FD_LONG , FD_DOUBLE , FD_LARGE . |
Variable | A variable that matches the indicated Type . |
The SetVariable() function provides a method for setting global variables in a Fluid script prior to execution of that script. If the script is cached, the variable settings will be available on the next activation.
Okay | The variable was defined successfully. |
---|---|
Args | Invalid arguments passed to function. |
ObjectCorrupt | Privately maintained memory has become inaccessible. |
FieldTypeMismatch | A valid field type was not specified in the Type parameter. |