Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error events
Message
De
15/02/2000 10:52:04
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvanie, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Error events
Divers
Thread ID:
00332212
Message ID:
00332212
Vues:
57
&&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
Fil
Voir

Click here to load this message in the networking platform