Method
Arrays.RemoveRowAt
Warning
This item was deprecated in version 2020r2. Please use Arrays.RemoveAt as a replacement.
Description
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 |
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"
Compatibility
All project types on all supported operating systems.
See also
Arrays parent class; Var statement; Arrays concept; ParamArray keyword