>I was booted out of my system last night with a bsod and when I came back this morning I can't open the form I was working on.
>
>If I say 'use myform.scx in 0', VFP says 'not a table'.
>
>Am I out of luck?
You might have some luck. It's generally reccount() info in header that gets corrupted.
* You might need to enter fullpath for myform
do home()+'tools\hexedit\hexedit' with 'myform.scx'
Get size from window - say lnSize.
lnRecords = (lnSize-1033)/109
Now read positions 4-7 in hexedit window (first row). You should read it as hex and from right to left. Say there is 01 02 03 04 there. You would goto command window and :
? 0x04030201
To get recordded reccount(). If it's different from what you have in lnRecords then you're in good shape. Convert lnRecords to hex notation :
? transform(lnRecords,'@0')
Write what you get from right to left to positions 4-7 and save edits.
PS: Absolutely do this with a copy.1033 is headersize and 109 recsize for scx.
Cetin