RDD

DbCloseAll()

Close all occupied work areas

Syntax

Signature
DbCloseAll() --> NIL

Arguments

None.

Return value

NIL.

Description

DbCloseAll() closes every open work area and its associated files. The selected work area is reset to area 1 after all areas are closed.

Notes

Pending updates are committed according to the RDD close operation before each area is released.

Example

DbCloseAll.prg
PROCEDURE Main()


   DbUseArea( .T., , "people.dbf", "People" )
   QOut( "Before close: " + IIF( Used(), "OPEN", "CLOSED" ) )
   DbCloseAll()
   QOut( "After close: " + IIF( Used(), "OPEN", "CLOSED" ) )


   RETURN

Output

See also