Arrays.RemoveAt
From Xojo Documentation
Method
Removes the specified element from the array.
Usage
array.RemoveAt index
Part | Type | Description |
---|---|---|
array | Any data type | Required. The array from which to remove the element. |
index | Integer | Required. The index number to be removed. |
Notes
The RemoveAt method removes the index element from the array. The remaining elements are shifted down to the removed element so that there are no gaps in the array.
The RemoveAt method works with one-dimensional arrays only.
Arrays can have a maximum index value of 2,147,483,646.
Sample Code
This example removes element 1 from the aNames array:
See Also
Var statement; Arrays concept; ParamArray keyword