>Hi Gregory,
>
>
>>>
>Maybe you can do a test on your file and confirm that it works ? I'm just lazy ;-)
>
>
>You were even too lazy to put in the #DEFINES <bg>. Seriously, thanks very much for the code - it seems to work fine on all of the FPT's I've tried it on so far. It's repaired a dozen or so known damaged files with no noticed side effects and also caused no problems when run against a large number of undamaged FPT files.
>
>Interestingly, amongst the damaged files were some which VFP (as mentioned originally) seemed capable of fixing on the fly when opening from the command window but also some which raised an error there as well. So far I haven't identified the difference between the two.
>
>Sorry for the delay in responding, Thanks again,
>Viv
Viv,
You're welcome.
It only works when a block has been physically written and the system crashes before the header was updated.
Sorry for the DEFINES (lol)
Gregory