DbGoBottom Function (Usual)
Move to the last logical record.
XSharp.RT (in XSharp.RT.dll) Version: 2.4a
Syntax View Source
uArea AS USUAL
) AS LOGIC
public static bool DbGoBottom(
- Type: Usual
Specifies the work area name or number for a table on which the operation must be performed.
TRUE if successful; otherwise, FALSE.
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 that accepts a workarea parameter (a workarea number or alias ).
DBGoBottom() is the functional equivalent of the GO BOTTOM command.
For more information, refer to the GO command.
Logical records: DBGoBottom() operates on logical records.|
If the work area has an active order list, DBGoBottom() moves to the last record in controlling order.
If a filter is set, only records which meet the filter condition are considered.
Shared mode: For a shared file, moving to a different record can cause updates to the current record to become visible to other processes.
The following example uses DBGoBottom() to position the record pointer on the last logical record:
1DBUseArea(TRUE, "DBFNTX", "sales", "Sales", TRUE)
4IF Sales->Last == "Winston"
5 IF Sales->RLock()
7 QOut("Record deleted: ", Sales->Deleted())
9 QOut("Unable to lock record...")