| SETARRAY | Not in LE |
|
|
||
| Purpose: | Define array variables |
| Format: | SETARRAY name[a[,b[,c[,d]]]] [...] |
| a,b,c,d | Array dimensions |
Usage:
You can define up to 4-dimensional arrays. For example, to define a 5-row by 10-column array:
setarray array1[5,10]
The array elements are addressed in base 0, so to reference this array you would use 0-4 for the rows and 0-9 for the columns.
To set the variable elements, use the SET command.
If you don't enter any arguments, SETARRAY will display the currently defined arrays. If you don't enter any dimensions, SETARRAY will display the definition for that array. You can use wildcards in the array name.
See also @ARRAYINFO.