General information
Category:
Forms & Form designer
&&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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only