Sharp PC-1403 Operation Manual page 145

Hide thumbs Also See for PC-1403:
Table of Contents

Advertisement

139
When a numeric array is dimensioned,
all
values are initially set to
zero;
in
a
string
array, the values are set to
null.
For the array
A
and A$ DIM
declaration,
refer to the
paragraph
discussing
variabl
e s.
In string
arrays, one specifies the size
of
each string
element
in
addition to the
number
of elements. For example, DIM
8$(3)*12
reserves space for
4
strings which are
each
a
maximum of 12 characters
long.
It
the length is not
specified,
each string can
contain
a
maximum
of
16
characters.
1
1
Mi
Except for arrays
in
the form:
A(
),
A$(
),
and
simple variable
like
A1
or 82$, a DIM
verb must
be used to reserve
space
for
any array variable.
The maximum number
of dimensions in
any
array
is
two; the
maximum size of any
one dimension
is
255. I
n
addition
to the number
of
elements specifi
e d
in
the dimension
statement, one
additional
"zeroth"
element
is
reserved.
For example,
DIM 8(3)
reserves B(O), 8(1), 8(2), and
B(3).
In two dimensional
arrays there is an
extra
"zeroth" row
and
column.
14111.t.MM
The DIM is
used to reserve space for
numeric
and string array variables.
is:
dimension
spec.
or:
dimension
spec.,
dim
list
is:
numeric
dim
spec.
or:
string dim spec.
is: numeric name (size)
is:
string name
(dims)
or:
string
name
(dims)*len
is:
valid numeric
variable name
is:
valid string variable name
is: size
or: size,
size
is:
number
of
elements
is:
length
of
each string
in
a string array
and:
size
and:
len
Abbreviations:
D., DI.
and: numeric name
and:
string name
and: dims
and:
numeric dim spec
and: string dim
spec
and:
dimension spec.
Verbs
DIM
1
DIM
dim list
Where: dim list

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents