Returns the number of a specified element in a one- or two-dimensional array.

Syntax

AELEMENT(<array name>, <subscript1 expN>
[, <subscript2 expN>])

<array name>

A declared one- or two-dimensional array.

<subscript1 expN>

The first subscript of the element. In a one-dimensional array, this is the same as the element number. In a two-dimensional array, this is the row.

<subscript2 expN>

When <array name> is a two-dimensional array, <subscript2 expN> specifies the second subscript, or column, of the element.

If <array name> is a two-dimensional array and you do not specify a value for <subscript2 expN>, dBASE Plus assumes the value 1. dBASE Plus returns an error if you use <subscript2 expN> with a one-dimensional array.

Description

See the description for element( ).