Posts: 883
Joined: Thu Dec 24, 2009 12:46 AM
Re: Mass undelete records in a DBF-file
Posted: Thu Mar 14, 2013 03:02 PM
Before you try anything, make sure you make a copy of the affected database...
If I understand correctly, dbRecall() recalls only the record where the pointer is at...
So you probably can try:
DBEVAL()
Performs a code block operation on the current Database
Syntax
DBEVAL( <bBlock>,
[<bFor>], [<bWhile>],
[<nNext>], [<nRecord>],
[<lRest>] ) --> NIL
Arguments
<bBlock> Operation that is to be performed
<bFor> Code block for the For condition
<bWhile> Code block for the WHILE condition
<nNext> Number of NEXT records to process
<nRecord> Record number to work on exactly
<lRest> Toggle to rewind record pointer
Returns
DBEVAL() always returns NIL
Description
Performs a code block operation on the current Database
I never had the need to recover any records, but you can start from there...
Please post your results, so we can learn from it...
=====>
Bayron Landaverry
xBasePHP.com
(215)2226600 Philadelphia,PA, USA
MayaBuilders@gMail.com
Guatemala
FWH25.06--Harbour 3.0.0--BCC7.7--UEstudio 10.10
Windows 10
FiveWin, One line of code and it's done...