Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error handling dilema
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00037106
Message ID:
00037306
Views:
34
>The problem is that when an error occurs in an object VFP always transfers control to the ERROR method of that object if it has code. Any ON ERROR commands in effect do not get consideration during this process. If the RETRY command is in the ERROR method the program goes into a tight endless loop of ERROR - RETRY - ERROR - RETRY etc..
>
>Am I missing something here? Do you have any other suggestions?

Bret,

In the error method of your form put this code;

IF && however you choose to determine this, I have a property of my application object that tells me
ERROR && the number of the error that caused the method to be called
ENDIF

You may have to put some more code inside the IF to either cancle the method or end the application or whatever else you want to do.
Previous
Reply
Map
View

Click here to load this message in the networking platform