From Xojo Documentation

Revision as of 18:53, 19 November 2009 by WikiSysop (talk) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Removes an element from an array. Arrays are zero-based.


array.Remove index

Part Type Description
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 Remove method works with one-dimensional arrays only.


This example removes element 4 from the aNames array:

aNames.Remove 4

See Also

Dim statement; Array, Join, Split, Ubound functions; Append, IndexOf, Insert, Redim, Pop, Shuffle, Sort, Sortwith methods; ParamArray keyword.