Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to make a dbf corrupted
Message
 
 
À
06/02/2007 18:03:43
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01192766
Message ID:
01193042
Vues:
12
>>Dear Experts
>>
>>How to make a dbf corrupted programatically?
>>
>>Please help
>
>
lcDbf="my.dbf"
>strtofile(chr(32)+filetostr(lcDbf), lcDbf)
>or
>
h=fopen(lcDbf, 12)
>fseek(h, 4)
>fwrite(h, "any text here will screw your table beyond recognition")
>fclose(h)
>
>That's easy. Fixing it is the art.

The other way to corrupt a dbf is to give it to one of our customers. <g>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform