Restore the current record if it has been marked for deletion.
XSharp.RT (in XSharp.RT.dll) Version: 2.2a
Syntax View Source
FUNCTION DbRecall() AS LOGIC
public static bool DbRecall()
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 overload that accepts a workarea parameter (a workarea number or alias ).
DBRecall() performs the same function as the RECALL command. For more information, refer to the DELETE and RECALL commands.
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.
The following example recalls a record if it is deleted and attempts to lock the record if successful:
cLast := "Winston"
DBUseArea(TRUE, "DBFNTX", "sales", "Sales", TRUE)
QOut("Unable to lock record...")