RDD

DbCloseArea()

Close the current work area

Syntax

Signature
DbCloseArea() --> NIL

Arguments

None.

Return value

NIL.

Description

DbCloseArea() closes the current work area and releases its database and index files. The current selection remains the same work-area number.

Notes

Calling it when no area is open has no effect.

Example

DbCloseArea.prg
PROCEDURE Main()

   DbUseArea( .T., , "people.dbf", "People" )
   DbCloseArea()
   QOut( "Open after close: " + IIF( Used(), "YES", "NO" ) )

RETURN

Output

See also