Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Structural CDX not found
Message
 
 
À
27/11/2001 10:54:10
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00586316
Message ID:
00586375
Vues:
15
>>>Nadya first you cant prevent if the cdx file doesn't exist what you can do is trap the error and do something e.g. go to the next loop or cancel the whole loop that is up to you.
>>
>>I think, I have to change my code and open these tables explicitly. I also need custom error handler for this specific problem. That's very inconvenient, because I already have Error Handler for this application, which is upper level. So, how can I trap for specific error 1707 in this program directly, but use my other application specific Error Handler, if it's not 1707 error?
>the answer is yes you can that depends how you have implemented you error handling I my case have an object that is responsable for the error handling so in the error routine of my baseforms and custom classes I create that object what he does is to call a custom method of the for and custom classes if that method return true that means that I do not trap that error so do the general error handling if returns false that means that I have handle the error so don't do nothing.
>
>>
>>Thanks in advance.
>>>

Hi Alexandre,

Actually, this application doesn't have form. It's a Special application, which consists of banch non-related programs. Anyway, I surrounded this particular block of code with on error statement/restoration of old error handler, added retry as Sergey suggested and it worked just fine. I didn't need to explicitly USE file, as I thought.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform