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

Yes, but is it in both cases the same error on the same codeline?

>
>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.
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform