Specifications

Chapter 14. Statement Reference
240
Syntax:
KILL "[drivename:]filename"
Parameter:
"[drivename:]filename"
A string expression.
Description:
KILL deletes a data file or a user program file specified by "[drive-
name:]filename"
.
[drivename:] is used in conventional BHT series. In the BHT-100 series, it is
merely for the compatibility with their specifications. The
drivename may be A:
or B:, but it will be ignored.
The specified file will be deleted from both the data and the directory in the mem-
ory.
A file to be deleted should be closed beforehand.
Syntax errors:
Run-time errors:
File I/O statement
KILL
Deletes a specified file from the memory.
Error code and message Meaning
error 3: " missing
No double quote precedes or follows
[drivename:]filename.
error 71: Syntax error [drivename:]filename
is not
enclosed in double quotes.
Error code Meaning
02h
Syntax error
(The format of
"[drivename:]filename" is not correct.)
35h
File not found
37h
File already open