Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error events
Message
From
15/02/2000 10:52:04
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvania, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Error events
Miscellaneous
Thread ID:
00332212
Message ID:
00332212
Views:
56
&&Main
On error do errhlr with error()
Do form MyForm

Procedure errhlr
>some stuff<
Return

If the error occurs in the main program, the errhlr routine works fine. If the error occurs in the form, i get a message "errhlr.prg is not found"

If don't put on error in Main, but put the errhlr routine in the form.error() method - i get default VFP error handling. If i put the routine in the controls' error() method, it works.

is there a SIMPLE way to get a global error trap for every control on every page of the form? (i thought the concept was to keep going up the parent until reaching the form's error(), but see above-it doesn't seem to work)
Next
Reply
Map
View

Click here to load this message in the networking platform