Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
No Error Handling, In the Error Handler?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00523757
Message ID:
00523820
Views:
10
>Try the following:
>local lnfile
>lnfile = fopen(MyDBFFile,12) && open file read/write unbuffered
>if lnfile > 0 then
>   =fseek(lnfile,28) && go to position 28
>   luvar = fread(lnfile,1)
>   =fwrite(lnfile,chr(bitxor(1,asc(luvar)))) && remove bit setting corresponding to file having a structural CDX
>   =fclose(lnfile) && close the file
>   use (MyDBFFile)
>   * rebuild your indexes here
>endif
>
>HTH.
>
>You can get information dealing with the structure of a DBF file from the VFP Programmer's Guide - Appendix.
>

Larry,

You have entirely too much time on your hands. ;)
Eric Kleeman - EDS Consulting Services
MCP Visual FoxPro
MCSD C#.NET
Hua Hin Thailand
Los Angeles California
Previous
Reply
Map
View

Click here to load this message in the networking platform