Arrays can be seen as a table of values stored in one variable. An array consists of a number of elements (or subscripts) where each element can store data.
Arrays in QuickBASIC 4.5 and QBASIC were limited to 32767 elements, while arrays in QB64 is limited to 2147483647 elements (over 2 billion).
When the 64-bit version of QB64 is implemented 9223372036854775807 elements will be the limit (but only on 64-bit systems).
REDIM can be used to redimension an array, the information contained in the array before the REDIM will be lost...however;
The memory of the array starts at:
address = VARPTR(array(0))
If OPTION BASE is used change the 0 accordingly.
Multiple dimensions are possible; in QuickBASIC up to 60 dimensions, in QB64 the number of dimensions possible is currently unknown.
A comma is used to seperate each dimension, as;
...for 4 dimensions.
Example of use: (REDIM without _PRESERVE erases the contents)
24 24 0