Information générale
Catégorie:
Codage, syntaxe et commandes
>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.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement