BB___CLOSE

=CLOSE= toc

Description
> This command closes any file, window, or other device which has been opened in a program. Closing a file or device can help to prevent data loss and error messages.

> See also OPEN. > See TRAPCLOSE for a proper method of handling the closing of a GUI program window.

Syntax
//In each case, the handle name is the same handle used when the file or device was OPENed.//
 * 1) close #Handle

Example
code format="lb" ' A typical useage of the close command: ' Open a disk file open "hello.txt" for output as #1 ' Write something to the file print #1, "Hello, world" ' Close the file close #1 code

Useful Functions
code format="lb" Place a useful function using this command here code