ADEL( ) Function

Example   See Also

Deletes an element from a one-dimensional array, or a row or column from a two-dimensional array.

Syntax

ADEL(ArrayName, nElementNumber [, 2])

Returns

Numeric

Arguments

ArrayName

Specifies the array from which the element, row, or column is deleted.

nElementNumber

Specifies the number of the element, row, or column to delete from the array. You must include the optional 2 argument to delete a column from the array.

For more information on how to reference elements in an array, see DIMENSION.

2

Deletes a column from the array.

Remarks

Deleting an element, row, or column from an array doesn't change the size of the array; instead, the trailing elements, rows, or columns are moved towards the start of the array, and the last element, row, or column in the array is set to false (.F.).

If the element, row, or column is successfully deleted, 1 is returned.