Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error 1707 - Structural .CDX file is not found
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00148362
Message ID:
00148698
Vues:
25
>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
Fil
Voir

Click here to load this message in the networking platform