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...
programming
practice
and
always initializing
your
variables
to
the
desired value,
you
will avoid
any
possible
confusion.
If
DIM
is
used
to
allocate
the
A( )
or
A$(
) arrays larger
than
26
elements,
there
are
certain
special
conditions
in
which an
error
can
cause
the
part
of
the
array
from
A(27)
or
A$(27)
on
to
become
inaccessible.
If
this
occurs,
it
is
necessary
to
redimension
the
array.
Expressions
An
expression
is
some
combination
of
variables,
constants,
and
operators
which can be evaluated
to
a single value. The
calculations
which
you
entered
in
Chapter
3
were
examples
of
expressions. Expressions are an intrinsic
part
of
BASIC programs.
For
example,
an
expression
might
be a
formula
that
computes
an answer
to
some
equation,
a
test
to
determine
the
relationship
between
two
quantities,
or
a
means
to
format
a
set
of
strings.
Numeric Operators
The
PC-3 has five
numeric
operators.
These are
the
arithmetic
operators
which
you
used
when
exploring
the
use
of
the
PC-3
as a
calculator
in
Chapter
3:
+
Addition
Subtraction
* Multiplication
/ Division
/\
Power
A
numeric
expression
is
constructed
in
the
same
way
that
you
entered
compound
calculator
operations.
Numeric
expressions
can
contain
any
meaningful
combination
of
numeric
constants,
numeric
variables, and
these
numeric
operators:
49

Table of Contents

Related product manuals