Arrays
Arrays are created using the standard BASIC Dim
statement, and may be of any number of dimensions. For example:
Creates a one-dimensional array called arr
with 11 elements numbered 0...10.
Arrays may be of any basic type or a custom type.
The type of an array is specified using a type tag. For example:
Creates an array called Deltas
of 101 floating point elements.
If the type tag is omitted, the array defaults to an integer array.
An array may be dimensioned at more than one point in a program, each time an array is dimensioned, it's previous contents are discarded. Arrays may be dimensioned inside functions, but a corresponding Dim
statement of the same array must also appear somewhere in the main program. For example:
Last updated