xHarbour Reference Documentation > Command Reference |
Removes a deletion mark from one or more records.
RECALL [<Scope>] ; [WHILE <lWhileCondition>] ; [FOR <lForCondition>]
The default scope becomes ALL when a FOR condition is specified.
The RECALL command removes the deletion mark for one or more records in the current work area. A record is marked for deletion with the DELETE command.
When a database is open in SHARED mode, the current record must be locked with the RLock() function before RECALL may be called. Failure to do so generates a runtime error. If multiple records should be unmarked for deletion, the entire file must be locked using FLock(), or the file must be open in EXCLUSIVE mode.
Note: The RECALL command can remove a deletion flag only until PACK is executed.
See also: | DbEval(), DbRecall(), DELETE, Deleted(), FLock(), RLock(), PACK, SET DELETED, ZAP |
Category: | Database commands |
Source: | rdd\dbcmd.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
// The example demonstrates the effect of a deletion mark. PROCEDURE Main USE Customer NEW EXCLUSIVE DELETE RECORD 20 ? Deleted(), Recno() // result: .T. 20 RECALL ? Deleted(), Recno() // result: .F. 20 CLOSE Customer RETURN
http://www.xHarbour.com