Arrays.RemoveRowAt

From Xojo Documentation

Method

Arrays.RemoveRowAt()

New in 2019r2

Supported for all project types and targets.

Removes the specified row from the array.

Usage

array.RemoveRowAt index

Part Type Description
array Any data type Required. The array from which to remove the row.
index Integer Required. The index number to be removed.

Notes

The RemoveRowAt method removes the index row from the array. The remaining rows are shifted down to the removed row so that there are no gaps in the array.

The RemoveRowAt method works with one-dimensional arrays only.

Arrays can have a maximum index value of 2,147,483,646.

Sample Code

This example removes row 1 from the aNames array:

Var names() As String = Array("Bob", "Tom", "Jane")
names.RemoveRowAt(1)
// names() = "Bob", "Jane"

See Also

Var statement; Arrays concept; ParamArray keyword