DbRecall Function |
Namespace: XSharp.RT
Tip |
---|
Logical records: Reinstating a deleted record affects the record's logical visibility if SetDeleted() is TRUE. For more information, refer to the DBDelete() function and the DELETE and RECALL commands. Shared mode: For a shared database, DBRecall() requires the current record to be locked. |
1cLast := "Winston" 2DBUseArea(TRUE, "DBFNTX", "sales", "Sales", TRUE) 3Sales->DBSetIndex("LastName") 4IF Sales->DBSeek(cLast) 5 IF Sales->Deleted() 6 IF Sales->RLock() 7 Sales->DBRecall() 8 QOut("Record recalled") 9 ELSE 10 QOut("Unable to lock record...") 11 ENDIF 12 ENDIF 13ELSE 14 QOut("Not found") 15ENDIF