![]() |
Retro Rocket OS
BASIC-Powered Operating System
|
Arrays in Retro Rocket BASIC are collections of variables of the same type, indexed by a zero-based subscript in brackets.
Arrays must be created with the DIM statement:
This allocates arrays with the specified number of elements.
Arrays can be resized dynamically with REDIM:
Use a zero-based index to read or write individual elements:
Assigning to the array name without a subscript initialises all elements:
This sets every element of scores to 0 and every element of names$ to "foo".