From Xojo Documentation
|You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!|
| This item was deprecated in version 2019r2.
Please use Arrays.RemoveAt as a replacement.
Removes an element from an array. Arrays are zero-based.
|array||Any data type||Required. The array to remove the element from.|
|index||Integer||Required. The element number to be removed. Arrays are zero-based.|
The Remove method removes the index element from the array. The resulting elements are shifted down to the removed element so that there are no gaps in the array.
The Remove method works with one-dimensional arrays only.
All arrays are indexed starting at position 0. Arrays can have a maximum index value of 2,147,483,646.
This example removes element 4 from the aNames array: