EasyManua.ls Logo

Sharp PC-1403 - Page 173

Sharp PC-1403
252 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...
1
67
Loads the
v
al
ues
fr
o
m
th
e DATA
st
at
e
m
e
n
t
into
B
(
)-
8
(
1
)
i
s
1
0
,
8
(2
)
i
s 20
,
8
(3)
i
s
3
0
,
etc
.
Se
t up an
arr
ay. 10 DIM
8
{10
)
20
WAIT32
30 FOR
1
=
1
TO
1
0
40 READ
8(1
)
50 PRINT
8(1
}*
2
60 NEXT
I
70
DAT
A 10
2
0 30
4
0 50 60
80 DATA 70
8
0
9
0 100
90 END
Examph~s
•au
When
a
s
signing
i
n
i
ti
a
l
va
l
ues to an
ar
r
ay
,
i
t
i
s
c
o
nve
n
i
ent to
l
is
t
t
he
v
a
lu
es in a DATA
statemen
t and
u
s
e a READ
st
at
eme
n
t in a
FO
R
...
N
E
X
T
l
oo
p to
lo
ad the
v
alues into
the
arr
a
y
.
Wh
en the first READ
i
s
ex
e
c
ute
d
.
t
h
e
fi
r
s
t
va
l
ue
i
n the
f
i
r
st
D
AT A
s
t
a
t
em
ent
i
s
returned
.
Su
c
ceed
i
ng
RE
A
D
s use
succ
eed
in
g
values
i
n
t
he
sequ
ential o
rd
e
r i
n
wh
i
ch
they appear
i
n
th
e
prog
ram
,
regard
l
ess of
h
ow
ma
n
y
v
a
lue
s are
l
i
sted in
e
ach DATA
statement or
h
ow
m
any
D
AT
A
stateme
n
t
s
ar
e
use
d
.
If
desired, the
va
l
ues
i
n a
DA
T
A
s
t
a
te
m
ent
c
an
b
e
re
ad
a
s
e
c
ond time by using the
RESTORE
statemen
t.
1µm+Mi
The READ
ver
b
i
s
u
s
ed
t
o
r
ead
va
lues from a
DAT
A
s
tat
em
en
t
and
a
ss
ign them to
vari
a
bl
es
.
See als
o
:
DATA
,
RE
S
T
O
RE
Abb
re
via
ti
on
s:
RE
A
.
1
READ
va
ri
a
bl
e
l
is
t
Where:
var
i
abl
e
l
ist
i
s
:
va
r
i
a
bl
e
or
:
var
i
ab
l
e
,
v
a
ri
ab
l
e
l
ist
Verbs
READ

Related product manuals