Sharp PC-1500A User Manual Page 10

  • Download
  • Add to my manuals
  • Print
  • Page
    / 10
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 9
Example with a
relative file
Jnk**************************
a)
Open a new relative
file
OPEN
9,8, 10,
"Test2.DAT,
1,80"
If
the
OPEN is successfull, the
red LED will stay switched on.
b) Print the OPEN-variable
PRINT DSHOl.l$ 9
"
8,l0,Test2.DAT
,L, ,
80"
c)
Hrite data into record
20
of the
file
Test2.DAT
VN$=t'pglgrr',
M$="Sample",
ST$=r'l-9ngstreet",
PZ$="1234"
0T$="ftugmlang",
TN$="123. 45.67"
DRECP0S 9,20,1 :PRINT
lt-15,9,VN$
DRECP0S 9,20,16
:PRINT
#-15,9,NA$
DRECP0S 9,20,30 :PRINT
tt-,|5,9,ST$
DRECP0S 9,20,50
:PRINT
tt-15,9,P2$
DRECPOS 9,20,55 :PRINT
tl-l5,9,0T$
DRECP0S
9,20,70 :PRINT
tI-15,9,TN$
d) Read the
just
saved data into the variables A$.. F$
DRECPOS
9
,20 ,1
: I
NPUT
/t-1
5,
9, A$
DRECP0S
9,20,16 : INPUT
/t-15,9,8$
DRECP0S
9,20,30
:
INPUT
/l-15,9,C$
DRECP0S
9,20,50
:
INPUT
/l-15,9,D$
DRECPOS
9,20,55
:
INPUT
/l-15,9,
E$
DRECPOS
9,20,70 : INPUT
/l-1
5, 9, F$
e)
Close
the file Test2.DAT
CLOSE 9
The
data will now
be stored
on disk and
the
red LED
turns off.
16/09/85
TRAMsoft
PF-9
e
Page view 9
1 2 3 4 5 6 7 8 9 10

Comments to this Manuals

No comments