EasyManua.ls Logo

Atari 800

Atari 800
326 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...
62
User's
Handbook
to
the Atari 400/ 800
Computers
pointer
will
point
at
the
first value in
the
DATA
list.
As
values
from
the
DATA
list are assigned
to
variables in
the
READ
statement,
the
pointer
will
move
sequentially
to
each successive
item
in
the
DATA
list.
The values
from
the
DATA
list must match
the
type
of
variable
to
which
they
are assigned in
the
READ statement. In
other
words,
a
string
value can
not
be assigned
to
a
numeric
or
vice versa.
The
RESTORE
statement
is
used
to
reset
the
DATA
list. In
Illustration
3-4,
note
the
use
of
the
RESTORE
statement.
After
DATA
list values have been read
into
A,
B,
C, D, and E in
line
500
,
a
RESTORE
statement
is
executed
. This causes
the
DATA
list
pointer
to
be reset
to
the
beginning
of
the
DATA
list.
Outputting Data
In some
of
our
preceding
examples,
we
touched
upon
the
use
of
the
PRI
NT
statement
to
display data. The
PRI
NT
statement
can be
used
to
display
both
numeric
and string data.
The
following
program
statement,
100 PRINT
"Vendor
List"
would
display
the
following
at
the
current
cursor
position.
Vendor
List
The first
item
in a PRINT statement
is
displayed at
the
cursor's
current
location.
Several strings can
be
displayed
on
the
same
line
with
a single
PRINT
statement
by separating
the
string constants
or
variables
in
the
PRINT statement
with
commas. The
following
statements,
050
DIM
A$(10)
100
LET
A$ =
"John"
200
PRINT A$,
"Bill",
"Peter"

Other manuals for Atari 800

Related product manuals