Show/Hide Toolbars

XSharp

NoteThis command is defined in a header file and will be preprocessed by the X# preprocessor to a function call. If you disable the standard header (-nostddefs) files then this command will not be available. If you tell the compiler to use a different standard header file (-stddef ) then this command may also be not available

Purpose

Close specified file type.

Syntax

CLOSE [<xcAlias> | ALL | ALTERNATE | DATABASES | INDEXES]

Arguments

<xcAlias>The alias identifier for the work area where all files are closed.

 

ALLCloses database and index files in all work areas, releasing all active filters, relations, and format definitions.

 

ALTERNATECloses the currently open alternate file.

 

DATABASESCloses all database, memo, and associated index files in all work areas, and releases all active filters and relations.  It does not, however, have any effect on the active format.

 

INDEXESCloses all index files and clears the order list in the current work area.

Description

CLOSE with no option closes the current database and associated files.  A number of other operations close files as a side effect, but it is always a good idea to explicitly close files when you are finished using them.

Assembly

XSharp.RT.DLL

See Also

DBCloseArea(), FClose(), SET INDEX, USE