Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ON ERROR mystery
Message
De
11/08/2005 17:13:08
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01040132
Message ID:
01040429
Vues:
20
>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.
>

Important is where you call the prg1 code.

Call you the prg1 in the same form method ?

>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform