AINS( ) Function

Inserts an element into a one-dimensional array, or a row or column into a two-dimensional array.

AINS(ArrayName, nElementNumber [, 2])

Parameters

ArrayName

Specifies the name of the array into which the element is inserted.

nElementNumber

Specifies where the new element, row, or column is inserted into the array.

To insert an element into a one-dimensional array, include ArrayName and the element nElementNumber where the insertion occurs. The new element is inserted just before element nElementNumber. To insert a row into a two-dimensional array, include ArrayName and the number of the row nElementNumber where the insertion occurs. The new row is inserted just before row nElementNumber.

For more information on referencing an array element by its subscripts, see DIMENSION Command.

2

Inserts a column into a two-dimensional array. The new column is inserted just before the column specified with nElementNumber.

Expand imageReturn Value

Expand imageRemarks

Expand imageExample

Expand imageSee Also


© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic