EasyManua.ls Logo

Radio Shack TRS-80 PC-3

Radio Shack TRS-80 PC-3
289 pages
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...
V(0,0)
V(1,0)
V(2,0)
V(0,1)
V(1,1)
V(2,1)
V(0,2)
V(1,2)
V(2,2)
This
extra
element,
or
row
and
column,
is
often
used
by
programmers
to
hold
partial
products
during
computations.
For
example,
you
might
total
the
elements
of
the
X array
by
summing
them
into
X(0).
The
form
and
use
of
the
DIM verb
is
covered in detail
in
Chapter
8.
Note:
The
A array
does
not
have
the
extra
0
element
and
does
not
need
to
be DIMensioned (see
section
below
on
Preallocated
Variables).
String Array Variables
String
array
variables have
the
same
relationship
to
numeric
array variables as simple string variables have
to
simple
numeric
vari-
ables
--
their
names
are
the
same
except
for
the
addition
of
a
dollar
sign:
C$(5)
The
fifth string
element
in
the
array C$
With string arrays,
the
length
of
each string will be 16
characters
unless
you
specifically
choose
a
different
length
in
the
DI
M
statement.
DIM
X$(12)
*8
DIMensions a string array with 12
elements,
each a string 8
characters
long.
Chapter
8 details
the
use
of
the
DIM
statement.
Preallocated Variables
Some
of
the
variables
which
you
will use
most
frequently
have already been allocated space
in
the
PC-3's
memory.
Twenty-six
47

Table of Contents

Related product manuals