First, some theory… The individual pieces that make up an array are called elements. The elements are numbered from 1 to the size of the array. Arrays can have up to 32,767 elements.
Continued here:
Passing arrays as parameters to functions or procedures in Dexterity