| CLEARSELECT | Index Level | COL1() |
| Syntax | CLOSE {file.variable} |
| Category | BASIC |
| Type | Statement |
| Description |
closes the file identified by "file.variable". If file.variable is not defined, the file referenced by the default file.variable is closed. This statement must be used if a file is opened and then a "delete-file" is executed with an "execute" statement.
Files "close" by default when a program ends. |
| Options | |
| See Also | statements & functions delete-file file.variable OPEN file control block |
| Example |
open 'testfile' to testfile then
close testfile execute 'delete-file testfile' end execute 'create-file testfile ':newdictmod:' ':newdatamod |
| Warnings | A file should be "closed" before it is deleted. |
| Compatibility | D3 7.0 AP |
| CLEARSELECT | Index Level | COL1() |