EasyManua.ls Logo

Sinclair QL - Page 192

Sinclair QL
422 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
arrays
Arrays must
be
DIMensioned before they are used. When an array
is
dimensioned the
value of each of
its
elements
is
set
to zero or a zero length string
if
it
is
a string array.
An array dimension runs from zero up to the specified value. There
is
no limit on the
number of dimensions which can be defined other than the total memory capacity of
the computer. An array of data
is
stored such that the last index defined cycles round
most rapidly:
the array defined by
example
DIM
array(2,4)
will
be stored as
0,0
0,1
0,2
0,3
0,4
1,0
1,1
1,2
1,3
1,4
2,0
2,1
2,2
2,3
2,4
low address
high address
The element referred to by array(a,b,c)
is
equivalent to the element referred to by
array(a)(b)(c).
12/84
Command
DIM
DIMN
Function
dimension an array
find out about the dimensions of
an array

Other manuals for Sinclair QL

Related product manuals