|
|
|
|
Functions
MioScript Reference
|
|
Syntax
| var.set(VariableIndex, ItemIndex, Value) |
Parameters
| INT | VariableIndex | Index of the variable.
| | INT | ItemIndex | Optional. Index of the item to retrieve.
| | STRING | Value | Value of the item, or of the variable if the item is null or not specified. |
Return value
| Value of the specified variable. |
Description
Set the value of a variable.
Important: The function fails if the variable do not exists.
You must create the variable as follow before you can set the value with var.set.
|
MioScript Sample Code
&myVar = ""
var.set(var.getIndex(myVar), null, "Hello, World")
alert(&myVar) |
|
|
|