Information générale
Catégorie:
Gestionnaire d'écran & Écrans
&&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)
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement