EasyManua.ls Logo

Laser 128 - Read

Laser 128
255 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...
BASIC COMMANDS AND STATEMENTS
3.47 READ
Purpose
:
To
read
values
from
a
DATA
statement
and
to assign
them
to
variables.
Format:
READ variable
[.
variable .
..
]
Comments:
The
READ
statement
must
be
accompanied
by
the
DAT
A
statement.
Enough
data
must
be
specified
by
the
DAT
A
statement
in
order
to
be
READ,
otherwise
an
'OUT
OF
DAT
A
ERROR'
m
ay
result.
Example:
variable
can
be
either
numeric
or
string
variables.
DAT
A
statements
can
be re-
used
after
they
have
been
READ
once,
but
to
do
this
you mu
st
use
the
RESTORE
command.
]
10
READ
A
] 20
READ
B$
] 30
PRINT
A;
II
";
B$
] 40
DATA
10, IS
TEN
]RUN
10
IS
TEN
II-82

Table of Contents