EasyManua.ls Logo

Radio Shack TRS-80 Model III - Page 118

Radio Shack TRS-80 Model III
274 pages
Print Icon
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...
TRS-80
MODEL
III
Q$
CA$ WRD$
ENTRY$
are all string variables
,
regardless
of what attributes have been assigned
to the
letters
Q,C,W and E.
Note that any given variable
name can
represent four different variables.
For
example:
A5#
A5!
A5% A5$
are all
valid and
distinct variable names.
One further
implication of
type declaration: Any variable name
used
without a
tag is
equivalent
to the same variable
name used with one of
the four
tags. For
example, after
the statement:
DEFSTR
C
the variable
referenced
by the name
C 1 is identical
to
the variable
referenced
by the
nameCl$.
How BASIC
Converts Numeric Data
Often yourprogram
might ask BASIC to assign one type of constant
to a different
type
of variable.
For example:
A%
=
2.34
In this
example, BASIC must first convert the single precision constant
2.34 to an
integer
in order to assign it
to
the integer variable A%
.
You might also want
to
convert one type of variable
to
a different
type, such as:
A#
=
A%
A!
=
A#
A!
=
A%
The conversion
procedures are listed
on
the
following
pages.
108

Other manuals for Radio Shack TRS-80 Model III

Related product manuals