From Xojo Documentation



New in 2019r2

Supported for all project types and targets.

Removes the specified row from the array.


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.


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() = "Bob", "Jane"

See Also

Var statement; Arrays concept; ParamArray keyword