General information
Category:
Coding, syntax & commands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only