Owner`s manual

88
KILL #
IFEOF
(#)
KILL
#5
KILL
Kills the
BRD
opened in logical number 5
by
the XOPEN
#
statement.
Kills all files opened by
WOPEN, ROPEN or XOPEN.
IF
EOF
(#5)
THEN
If
the file end occurs during execution of the INPUT #
700
statement relative to BSD, or during execution of the
INPUT
# ( ) statement relative to BRD, this
is
a branch
statement that commands to jump to the processing
routine in statement number
700.
5.1.5 Error Processing Statements
ON
ERROR
GO
ON
ERROR
GOTO
If
an error occurs during program execution, this
is
a
TO 1000 sentence saying to jump to statement number
1000.
IF ERN
IF
ERN
= 44
THEN
If
the error number is 44, this is a command to jump to
1050 statement number
1050.
IF ERL
IF
ERL
= 350
THEN
A command to jump to statement number
1090
if the
RESUME
1090 error statement number
is
350.
IF
(ERN
=
53)
*
(ER
A command to finish the program if the error number
is
L =
700)
THEN
END
53
and the error statement number
is
700.
650
RESUME
For the DISK BASIC, if an error occurs during the
program, the error number and error statement number
will
be set, respectively, to variables ERN and ERL.
Transfers control once again to the command generating
the error.
700
RESUME
Transfers control to the command following the command
~
NEXT
generating the error.
750
RESUME
400 Transfers control to statement number
400.
800
RESUME
0 Transfers control to the program heading.