Deletes an element from a one-dimensional array, or deletes a row or column of elements from a two-dimensional array. Returns 1 if successful, an error if unsuccessful.

Syntax

ADEL(<array name>, <position expN> [, <row/column expN>])

<array name>

The name of the declared one- or two-dimensional array from which to delete data.

<position expN>

When <array name> is a one-dimensional array, <position expN> specifies the number of the element to delete.

When <array name> is a two-dimensional array, <position expN> specifies the number of the row or column whose elements you want to delete. The third argument (discussed in the next paragraph) specifies whether <position expN> is a row or a column.

<row/column expN>

Either 1 or 2. If you omit this argument or specify 1, a row is deleted from a two-dimensional array. If you specify 2, a column is deleted. dBASE Plus returns an error if you use <row/column expN> with a one-dimensional array.

Description

See the description for delete( ).