183
Syntax:
CLFILE [#]filenumber
Parameter:
filenumber
A numeric expression which returns a value from 1 to 16.
Description:
CLFILE
erases data in the data file specified by
filenumber
and resets the
number of written records in the directory to zero.
• The memory area freed by
CLFILE
can be used for other data files or user pro-
gram files.
• User programs can no longer refer to the erased data.
•
CLFILE
cannot erase data in files stored in drive B.
Syntax errors:
Run-time errors:
CLear FILE
File I/O statement
CLFILE
Erases the data stored in a data file.
Error code and message
Meaning
error 71: Syntax error
filenumber
is missing.
Error code
Meaning
34h
Bad file name or number
(You specified
filenumber
of an unopened file.)
36h
Improper file type
(You specified
filenumber
of a file other than data files.)
3Ah
File number out of the range
43h
Not allowed to access data in drive B
Summary of Contents for BHT-BASIC 100 SERIES
Page 1: ......
Page 161: ...153 Chapter 10 Sleep Function CONTENTS 10 1 Sleep Function 154...
Page 163: ...155 Chapter 11 Resume Function CONTENTS 11 1 Resume Function 156...
Page 173: ...165 Chapter 13 Backlight Function CONTENTS 13 1 Backlight Function 166...
Page 249: ...241 Example CLOSE IF kyIn Y THEN KILL Master Dat END IF Reference Statements CLFILE...