EasyManuals Logo

Radio Shack Telephone Interface II Manual

Radio Shack Telephone Interface II
126 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
Page #54 background imageLoading...
Page #54 background image
m*
PROG
RAM
STA^EMEitrs
In
this
section
we
use
the
following
form
for
various terms,
[variable],
[numerical
variable],
[character
variable]
and
< expression
>
.
[Variable]:
[Numerical
variable]:
[Character
variable]:
<
Expression
>
:
General
name
for
numerical
and
character
variables.
General
name for
fixed
memories
defined
by A
through
Z
and
dimensioned
memories
defined
in
the form
of
A
(
).
General
name
for
fixed
memories
defined
by A$
through
Z$
and
dimen-
sioned
memories
defined
in the
form
of A$
(
).
Operational
expression
composed of elements
of
<
expression
> as we
des-
cribed
on
page
18,
covering
also [numerical
variable]
.
1.
LET
statement
The
variable
name
on the
left
is
assigned the value
of the
constant or
expression
on
the
right.
The
TRS-80
Pocket
Computer
does not
require
LET
except
when it is
used with an
IF
statement.
(For
IF
statement,
consult page
60.)
General
form
(1)
LET
[Numerical
variable]
=<
Expression
>
Example:
LET A
=
5*3
Example:
LET
A= 123
A(30)
=
3*6
A(2*B)
=
C
+
D
Instruction
to
put
123 in A (LET
can
be
omitted as in
the
following
example.)
Instruction
to
put 18 in A
(30).
Instruction
to put the value of C
+
D
in A
(2
*
B).
General
form
(2)
LET
[Chracter
variable]
=
"Character"
Example:
LET
Z$=
"BASIC"
Characters
between
quotation
marks are
put in the character
variable
specified by the
leftside.
When
the
length
of a string
of
characters
on
the
right side
exceeds seven
characters,
only
the first
seven
characters
are
put
in (the
excess
is discarded).
General
form
(3)
LET
[Character
variable]
=
[Character
variable]
Example:
LET A$(25)
=
Z$
Characters
stored
in
the
character
variable
specified
on
the
right side are
placed in the character
variable
specified
by
the left
side.
Example:
A$
=
"NON"
Instruction
to place "NON" in A$.
A$(28)
=
"DATA
?"
Instruction
to place "DATA
?"
in A$(28).
C$
=
A$
Instruction to place characters
stored
in A$
in C$.
General
forms
(1)
thru
(3)
can
be
put
on
a
single program
line
by
dividing them with commas
(,).
In this
case, LET
must not be used after
a comma
(
,
).
Example:
10
: LET
A
=
2
'
B
=
7
»
C$
=
"A
=
2,
B
=
7"
2
is placed in
A,
7
in B and "A
=
2,
B
=
7"
in
C$.
51

Other manuals for Radio Shack Telephone Interface II

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Radio Shack Telephone Interface II and is the answer not in the manual?

Radio Shack Telephone Interface II Specifications

General IconGeneral
BrandRadio Shack
ModelTelephone Interface II
CategoryDesktop
LanguageEnglish

Related product manuals