|
|
|
|
Functions
MioScript Reference
|
|
Syntax
| var.array.clear(Array, index) |
Parameters
| ARRAY | Array | Name of the variable containing the array.
| | INT | index | Optional. First item to be removed. If not specified, all the items are removed. |
Return value
No value is returned.
Description
Clear an array.
If the second parameter is set to null or not specified, the function remove all the items from the array.
If the second parameter is specified, it is possible to remove the latest items. This is useful to limit the size of the array. |
MioScript Sample Code
&myArray[] = "Item 1^^Item 2^^Item 3"
var.array.remove(myArray, 2)
alert(&myArray[]) |
|
|
|