Eof; Erase; Erl - AMSTRAD cpc 6128 User Instruction

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

EOF
EOF
10 OPENIN "keys.wp"
20 WHILE NOT EOF
30 LINE INPUT #9,a$
40 PRINT a$
50 WEND
60 CLOSEIN
run
FUNCTION: Tests to see if the disc input is at End Of File. Returns -1 (true) ifno file
is open or file is at the end, otherwise returns 0 (false).
Associated keywords: 0 PEN IN,
C
LOS E I N
ERASE
ERA S E <list of: <variable name>
DIM a(100),b$(100)
ERASE a,b$
COMMAND: Erases the contents of an array no longer required, reclaiming the
memory for other use.
Associated keywords: D I M
ERL
ERL
10 ON ERROR GOTO 30
20 GO TO 1000
30 PRINT "error is in line";ERL
40 END
run
FUNCTION: Reports the Line number of the last ERror encountered. In the above
example you will see that the error is in line 213, and has been reported so by the ER L
function.
Associatedkeywords: DERR, ERR, ERROR, ON ERROR GOTO, RESUME
Complete List of Keywords
Chapter 3 Page 25

Advertisement

Table of Contents
loading

Table of Contents