User Tools

Site Tools


en:arrayelements

This is an old revision of the document!


Array Elements

Format

One Dimensional

array [ index ]

Two Dimensional

array [ row , column ]

Description

By default an integer from 0 to one less than the length of an array is used to index values within an array. This behavior can be modified with the arraybase statement. You may specify either a zero (for default indexing) or 1 for indexing starting at 1 and going to the length of the array.

Example

arraybase 1
ar = {44,55,66,77,88}
for i = 1 to ar[?]
    ? i, ar[i]
next i
1            44
2            55
3            66
4            77
5            88

See Also

en/arrayelements.1587677632.txt.gz · Last modified: 2020/04/23 15:33 by admin