Information générale
Catégorie:
Codage, syntaxe et commandes
>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
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