02-22-2011, 06:15 PM
Unfortunately this is not (yet) supported. What you're asking is a DYNAMIC ARRAY.
This is a feature planned for 1.2.8 (or higher). Dynamic array are a bit trickier, slower and might take a little more memory, but on the other hand are more powerful and allow redimension during runtime. Meanwhile, you can create an array with a MAXPERSONS size (e.g. 20), and use a variable to store the real number of persons:
And yes, you will allocate 10 unused positions.
DYNAMIC Arrays are planned for the next release, please, be patient.

Code:
CONST MaxPersons As Ubyte = 20
DIM a(MaxPersons) As Ubyte
LET numPersons = 10 : REM number of persons by now...
FOR i = 1 TO numPersons
LET a(i) = RND * 10
NEXT i
DYNAMIC Arrays are planned for the next release, please, be patient.