Link Search Menu Expand Document

Array.Erase method

Explanation Deletes the element at the specified position or all elements.
**Added since Version 4.0.3**
**Added since Mobile Version 3.0.0**
Call format arr.Erase( [ index ] )
Return value None
Argument index Specify the index that specifies the element you want to delete.
If index is a number, subsequent elements with the number as a subscript are padded forward.
If index is omitted, all elements will be deleted.
Exception None
Example of use
var arr = new Array("test1", "test2", "test3", "test4");
print(arr, "\n");
arr.Erase(2);
print(arr, "\n");
arr.Erase();
print(arr.Length, "\n");
Related item