Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Intentionally Corrupt a Table?
Message
 
To
19/05/2004 18:28:36
Donald Lowrey
Data Technology Corporation
Las Vegas, Nevada, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00905438
Message ID:
00905487
Views:
17
Off the cuff, you could read the file into a var and add one char to the header. That would give you a corrupt file. You could do the same to the cdx and fpt files and you would experience errors there too.

lcfile=filetostr('myfile.dbf')
strtofile(chr(32)+lcfile,'myfile.dbf')
Then open the dbf, you will get an error.

John
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Previous
Reply
Map
View

Click here to load this message in the networking platform