EasyManua.ls Logo

Laser 128 - DIM

Laser 128
255 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...
3.10
DIM
Purpose:
Format:
BASIC COMMANDS AND STATEMENTS
This
sets
the
subscripts
for
a
allocates
enough
accomoda
te them.
maximum
variable
and
storage
to
DIM variable (subscripts)
[.
variable (subscripts) .
...
]
Comments: When
the
BASIC
interpreter
encounters
a
DIM
statement,
it
initialises
all
the
elments
of
the
array
to
zero,
if
it
is a
numeric
array
.
For
a
string
array,
all
elements
are
initially
null
strings
(i.e.
empty
strings).
However
the
length
of
each
element
can
be
different
as a
result
of
program
execution.
If
an
array
is
used
in
a BASIC
program
without
a
corresponding
DIM
statement,
the
interpreter
assumes
the
value
of
the
subscript
to
be I 0.
The
maximum
number
of
dimensions
and
maximum
number
of
elements
in
each
dimension
depend
on
the
amount
of
free
memory
in
the
system.
11-29

Table of Contents