Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FPD25 Manually correct 30 bytes of a corrupted Table hea
Message
From
25/08/2004 06:29:01
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00936241
Message ID:
00936242
Views:
31
This message has been marked as a message which has helped to the initial question of the thread.
If the file is not too big, you can use something like this:
lcFile=yourfile
lcTekst=filetostr(lcFile)
lnLength=len(lcTekst)
strtofile(lcFile,left(lcTekst,lnLength-30))
NB! Not tested. And be sure to make a backup first. :-)

>Hi all
>
>I have this corrupted table. the records and it's length seems to be okay, but the header has somehow got 30 characters more in it, though this longer header is still recognized by FP and still returns the right number of fields, fieldnames and lengths. I have a copy of the original table (empty table).
>
>I have tried to overwrite the header portion but how do I remove the 30 extra bytes? This I have seem happening before, but if just manually removing a few bytes or the header fully and the putting in the right header should give the file back as the records are unharmed.
>
>Please advise.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform