Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return to a method
Message
From
05/04/2006 20:22:04
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
05/04/2006 20:14:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01110818
Message ID:
01110827
Views:
14
>I should probably ask the obvious question. If you were writing an error handler and therefore have ON ERROR blah...blah, if it is a fatal error and you do not want to return to the line below where the error occurred, where and how would you return to someplace else?

I am not so sure about error handling - in my case, the framework takes care of it.

In Visual FoxPro 8 (?) and later, you can use TRY ... CATCH, for a more modern error handling. But I think this is used for anticipating errors in specific places in your code; I am not sure how this would be applied for generic error handling, which I am sure you are talking about.

Perhaps a RETURN TO..., or RETURN TO MASTER, is indeed the best solution in this case - I am not sure.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform