EasyManua.ls Logo

Apple IIe - Page 145

Apple IIe
320 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...
Apple
BASIC Reference
Guide
145
Configuration
RESTORE
The data
in
a
program
is
read
in
order,
starting
with
the
first
DAT
A
statement
item.
In
order
to
reread
the
data, a
RESTORE
statement
is
necessary.
When
a
RESTORE
statement
is
executed,
the
next
READ state-
ment
will
assign
to
its first
variable
the
first data value
that
appears in
the
program.
Example
10
READ A1,B1,C1,X1$
20
PRINT A1,B1,C1
30
PRINT
X1$
40
RESTORE
50
PRINT
60
READ A2,B2,C2,X2$
70
PRINT A2,B2,C2
80
PRINT
X2$
90
READ
X3$
100 PRINT
X3$
110
DATA
32,-102,2.12,RECTOR,SPALL
In
the
preceding
example,
data
is
read
into
the
variables
indicated
in
line
10. The data
is
then
displayed in lines
20
and
30.
The
RESTORE
statement in
line
40
allows
the
data items read in
line
10
to
be read again.
RESUME
Applesoft
o
Integer
RESUME
is
used
in
Applesoft
BASIC
to
resume
program
exe-
cution
after
an
ON
ERR
GOTO
statement
has
branched
program
control
to
an
error
routine.

Other manuals for Apple IIe

Related product manuals