From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

array.Append(value As DataType)

Supported for all project types and targets.

Appends a new element to the end of a one-dimensional array, increasing the size of the array by one. The value must match the data type of the array.



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.

Sample Code

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

Dim names() As String

See Also

Dim statement; Array, Join, Split, Ubound functions; IndexOf, Insert, Pop, Redim, Remove, Shuffle, Sort, Sortwith methods; ParamArray keyword; Arrays concept