Array()
Create an uninitialized array of specified length.
Syntax
Array(<nElements> [, <nElements>...]) --> aArray
Arguments
<nElements> --> is the number of elements in the specified dimension. The maximum number of elements in a dimension is 4096.
Returns
Array() returns an array of specified dimensions.
Description
Array() is an array function that returns an uninitialized array with the specified number of elements and dimensions. If more than one <nElements> argument is specified, a multidimensional array is created with the number of dimensions equal to the number of <nElements> arguments specified. Any <nElements> that is itself an array creates a nested array.
There are several ways to create an array. You can assign a literal array to an existing variable, for example:
MyArray := { 1, 2, 3 }
or you can use the Array() function. For example, this creates a one-dimensional array of four elements using the Array() function, and then shows the equivalent action by assigning a literal array of NIL values:
aArray := Array(4)
aArray := { NIL, NIL, NIL, NIL }
____________________________
Related Topics: