DbGoBottom Function |
Namespace: XSharp.RT
Tip |
---|
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. |
1DBUseArea(TRUE, "DBFNTX", "sales", "Sales", TRUE) 2Sales->DBSetIndex("lastname") 3Sales->DBGoBottom() 4IF Sales->Last == "Winston" 5 IF Sales->RLock() 6 Sales->DBDelete() 7 QOut("Record deleted: ", Sales->Deleted()) 8 ELSE 9 QOut("Unable to lock record...") 10 ENDIF 11END