Close all files in a work area.
XSharp.RT (in XSharp.RT.dll) Version: 2.17
DBCloseArea() releases a work area from use.
By default, this function operates on the currently selected work area.
It can be made to operate on an unselected work area by specifying
it within an aliased expression or by calling the overload that accepts a workarea
parameter (a workarea number or alias ).
DBCloseArea() is equivalent to the CLOSE command or the USE command with no clauses.
For more information, refer to the USE and CLOSE commands.
The following example closes a file via an alias reference:
1cLast := "Winston"
2DBUseArea(TRUE, "DBFNTX", "sales", "Sales", TRUE)
5DBUseArea(TRUE, "DBFNTX", "colls", "Colls", TRUE)
10 IF Sales->Deleted() .AND. ;
12 QOut("Record deleted: ", Sales->Deleted())
15 QOut("Not found")