xHarbour Reference Documentation > Command Reference |
Closes one or more specified files.
CLOSE [<cAlias> | ALL | ALTERNATE | DATABASES | FORMAT | INDEXES ]
The CLOSE command accepts various options to specify one of more files to close. When it is invoked without an option, the files in the current work area are closed. This has the same effect as the USE command called with no file name.
See also: | DbCloseAll(), DbCloseArea(), QUIT, RETURN, SET ALTERNATE, SET INDEX, Set(), USE |
Category: | Database commands , Environment commands |
Source: | rdd\dbcmd.c, rtl\set.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
// The example demonstrates the effect of the CLOSE command // together with different options PROCEDURE Main USE Address ALIAS Addr INDEX Addr1, Addr2 ? IndexOrd() // result: 1 CLOSE INDEXES ? IndexOrd() // result: 0 ? Alias() // result: ADDR CLOSE Addr ? Alias() // result: "" RETURN
http://www.xHarbour.com