Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ON ERROR mystery
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01040132
Message ID:
01040416
Views:
14
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform