Arrays.AddRow

From Xojo Documentation

Method

Arrays.AddRow(value As DataType)

New in 2019r2

Supported for all project types and targets.

Adds a new row 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.

Usage

array.AddRow(value)

Part Description
array Required. The array to to which you wish to add rows.
value The value to be assigned to the new array element.

Notes

The AddRow method works with one-dimensional arrays only.

Sample Code

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

Var names() As String
names.AddRow("Betty")

See Also

Var statement; Arrays concept for a complete list of functions; ParamArray keyword