>>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>