Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make a dbf corrupted
Message
 
 
To
06/02/2007 18:03:43
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01192766
Message ID:
01193042
Views:
13
>>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>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform