Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FPD25 Manually correct 30 bytes of a corrupted Table hea
Message
De
25/08/2004 06:29:01
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00936241
Message ID:
00936242
Vues:
30
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform