From Xojo Documentation

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


Appends a new element to the end of a one-dimensional array, increasing the size of the array by one.


array.Append value

Part Description
array Required. The array to be appended.
value The value to be assigned to the new array element.


The Append method works with one-dimensional arrays only.


This example appends a new element to the end of the aNames array. The new element becomes the last element of the array.

aNames.append "Bill"

See Also

Dim statement; Array, Join, Split, Ubound functions; IndexOfInsert, PopRedim, Remove, Shuffle, Sort, Sortwith methods; ParamArray keyword.