Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error 1707 - Structural .CDX file is not found
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00148362
Message ID:
00148698
Views:
24
>When I USE a .DBF (interactively) and the associated CDX file does not exist, I have the option to ignore the error and the .CDX is no longer required.
>
>How do I do this in code?
>If I get an error 1707, I can trap it, but big deal, the .DBF still doesn't end up open...
>
>I thought that maybe SET SAFETY OFF would allow code to open a DBF w/o its matching CDX but no luck.
>
>
>What am I missing?
>
>Thanx!

I have the same situation. I trap the error and issue a RETRY. The first time it errors should remove the association, on the RETRY it should be able to use the table just fine. Just in case, I only let it RETRY 300 times and then issue my error message routine so that it won't get stuck in a loop under different circumstances.

Marcus.
Previous
Reply
Map
View

Click here to load this message in the networking platform