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...
A$
C$
A
string
variable
may
be
from
0
to
7
characters
long.
If
you
try
to
store
more
than
7
characters
in a
string
variable,
only
the
first 7 will be saved. When a
string
variable
is
empty,
or
its length
is
zero,
it
is
called NUL
or
the
NUL string.
Numeric Array Variables
For
some
purposes
it
is
useful
to
deal
with
numbers
as an
organized
group,
such as a list
of
scores
or
a
tax
table.
In
BASIC
these
groups
are called
arrays.
An
array
can
be
either
one-dimensional,
like a list,
or
two-dimensional,
like a
table.
Array
names
are
designated
in
the
same
manner
as
simple
variable names,
except
that
they
are
followed
by
parentheses.
The
elements
of
an array
are
referred
to
by
a
number
inside
the
parentheses;
when
the
array
is
two-dimensional,
there
must
be
two
numbers
separated
by
a
comma.
A(5)
B (3,2)
The
fifth
element
of
a
one-dimensional
array
A.
The
element
in
the
third
row
and
second
column
of
a
two
dimensional
B array.
Arrays
are
created
using
the
DIM verb
or
command.
To
create
an
array,
give its
name
and
its size.
DIMX(5)
DIM
Y(32)
Note
that
DIM X(5)
actually
creates
an
array
with
six
entries:
Xl!))
X(1) X(2)
X(3)
X(4)
X(5).
Similarly DIM
Y(2,
2)
creates
an
extra
0
row
and
an
extra
0
column:
46

Table of Contents

Related product manuals