empty_empty_a_data_file_.htm
| Navigation: Language Reference > 13 - Built-in Functions >====== EMPTY (empty a data file) ====== | ![]() ![]() |
EMPTY(file)
| EMPTY | Deletes all records from a FILE. |
| file | The label of a FILE. |
EMPTY deletes all records from the specified file. EMPTY requires exclusive access to the file. Therefore, the file must be opened with access mode set to 12h (Read/Write Deny All) or 22h (Read/Write Deny Write).
Errors Posted:
| 37 | File Not Open |
| 63 | Exclusive Access Required |
Example:
OPEN(Master,18) !Open the master file
EMPTY(Master) !and start a new one
See Also:
empty_empty_a_data_file_.htm.txt · Last modified: by 127.0.0.1




