Difference between revisions of "ALEN()"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) |
||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to return the number of elements, rows or columns in an array | Function to return the number of elements, rows or columns in an array | ||
− | |||
==Syntax== | ==Syntax== | ||
ALEN(<array> [,<expN>]) | ALEN(<array> [,<expN>]) | ||
− | |||
==See Also== | ==See Also== | ||
− | [[AADD()]], [[AAVERAGE | + | [[AADD()]], [[AAVERAGE()]], [[ACOPY()]], [[ADEL()]], [[ADESC()]], [[ADIR()]], [[AELEMENT()]], [[AFIELDS()]], [[AFILL()]], [[AINS()]], [[AMAX()]], [[AMIN()]], [[APPEND FROM ARRAY]], [[ARRAY()]], [[ASCAN()]], [[ASIZE()]], [[ASORT()]], [[ASTORE()]], [[ASTRING()]], [[ASUBSCRIPT()]], [[ASUM()]], [[COPY TO ARRAY]], [[DECLARE]], [[DIMENSION]], [[GATHER]], [[IN_ARRAY()]], [[LOCAL]], [[PRIVATE]], [[PUBLIC]], [[RELEASE]], [[RESTORE]], [[SAVE]], [[SCATTER]] |
==Description== | ==Description== | ||
Line 42: | Line 40: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Array Processing]] | [[Category:Array Processing]] | ||
[[Category:Array Processing Functions]] | [[Category:Array Processing Functions]] |
Revision as of 11:54, 26 October 2011
Contents
Purpose
Function to return the number of elements, rows or columns in an array
Syntax
ALEN(<array> [,<expN>])
See Also
AADD(), AAVERAGE(), ACOPY(), ADEL(), ADESC(), ADIR(), AELEMENT(), AFIELDS(), AFILL(), AINS(), AMAX(), AMIN(), APPEND FROM ARRAY, ARRAY(), ASCAN(), ASIZE(), ASORT(), ASTORE(), ASTRING(), ASUBSCRIPT(), ASUM(), COPY TO ARRAY, DECLARE, DIMENSION, GATHER, IN_ARRAY(), LOCAL, PRIVATE, PUBLIC, RELEASE, RESTORE, SAVE, SCATTER
Description
The ALEN() function returns the number of elements in the previously declared <array>. If the optional <expN> is specified, ALEN() can also return the number of rows or the number of columns in the array.
<expN> | Returns |
---|---|
0 | Number of elements |
1 | Number of rows |
2 | Number of columns |
If no <expN> is specified, the number of array elements is returned.
Example
declare aNames[10,12] ? alen(aNames) 120 ? alen(aNames,0) 120 ? alen(aNames,1) 10 ? alen(aNames,2) 12