AELEMENT()

From Lianjapedia
Revision as of 09:02, 7 December 2012 by Yvonne.milne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Purpose

Function to return the number of an array element from the element subscripts

Syntax

AELEMENT(<array>, <expN1> [,<expN2>])

See Also

AADD(), AAVERAGE(), ACOPY(), ADEL(), ADESC(), ADIR(), AFIELDS(), AFILL(), AINS(), ALEN(), AMAX(), AMIN(), APPEND FROM ARRAY, ARRAY(), ASCAN(), ASIZE(), ASORT(), ASTORE(), ASTRING(), ASUBSCRIPT(), ASUM(), COPY TO ARRAY, DECLARE, DIMENSION, GATHER, IN_ARRAY(), IS_ARRAY(), LOCAL, PRIVATE, PUBLIC, RELEASE, RESTORE, SAVE, SCATTER

Description

The AELEMENT() function returns the element number from a two-dimensional array. The <array> is the name of a two-dimensional array, <expN1> is the row number and <expN2> the column number. If <expN2> is omitted, the column defaults to 1. From the row and column values of the two-dimensional array AELEMENT() will return the element number.

Example

declare test[4,4]
? aelement(test, 3,2)
        10