Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ON ERROR mystery
Message
 
 
À
11/08/2005 07:19:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01040132
Message ID:
01040416
Vues:
12
Thank You for your response.

I understand that form1.error() gets priority over ON ERROR.

However, My point was; how come form1 allows the ON ERROR to trigger in prg1, while form2 triggers it's own error() event ?

They are both running the same prg1 code, they inherit from the same class, and they have the same code in their error() event.

I am trying to understand the inconsitency of this situation.

- Also is there anyway, I can FORCE form2 to do what form1 is doing ? (allow ON ERROR to trigger instead of error()).

If this behavior is purely based on LUCK (as it seems that it is), then I will have to change all my code and convert the ON ERROR mechanism to TRY ..CATCH as Doug suggested. However, I am reluctant to change all that code which has been working for so long...

Thanks again.
Cyrus Nima
-------------------
cyrusnima@gmail.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform