Returns the row number or the column number of a specified element in an array.

Syntax

ASUBSCRIPT(<array name>, <element expN>, <row/column expN>)

<array name>

A declared one- or two-dimensional array.

<element expN>

The element number.

<row/column expN>

A number, either 1 or 2, that determines whether you want to return the row or column subscript of an array. If <row/column expN> is 1, ASUBSCRIPT( ) returns the number of the row subscript. If <row/column expN> is 2, ASUBSCRIPT( ) returns the number of the column subscript.

If <array name> is a one-dimensional array, dBASE Plus returns an error if <row/column expN> is a value other than 1.

Description

See the description for subscript( ).