| Name | SetVariable |
|---|---|
| Type | Method |
| Summary | Sets the value of a variable |
| Prototype | long SetVariable(BSTR VariableName, BSTR Contents); |
| Description | Sets the contents of a variable. If the named variable already exists the contents are replaced. If the variable doesn't exist it is created. Variables are contained in the "world" configuration, and saved when the world is saved. You can use variables to "remember" data from one session of MUSHclient to the next. |
| VBscript example | |
| Jscript example | |
| PerlScript example | |
| Returns | eInvalidObjectLabel: The variable name is not valid |
See also ...