134
CHAPTER
6
Command
Reference
Example
10
DIM
A(
10)
20
A(3)=7
30
DIM
A(
10)
4 0 P R I N T A ( 3 )
<-
0 will be displayed.
6) Error 6 will occur
if
an
attempt
is
made
to
use an undeclared array variable in
the
DIM
mode.
7)
Error 1 will occur
when
memory
is
insufficient.
8) Multiple array variables can be declared at one time
by
punctuating
with
commas.
Example
DIM
A(3),A$(5)
,
8(20
,
3)
9)
Contents
of
all
array variables will be initialized
to
0 or null string
by
execut-
ing the DIM statement.
10) Array declarations can be cancelled
with
CLEAR, ERASE,
NEW
ALL or
DEFM.
*If
a
DIM
statement
is
executed when in the DEFM mode, the DEFM mode will
be cancelled and all expanded variables will be cleared.
11) Eight bytes
of
memory will be required for each array declared with the
DIM
statement.