Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error handler to stop a procedure?
Message
De
14/07/1999 14:29:12
 
 
À
14/07/1999 14:12:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00241384
Message ID:
00241415
Vues:
22
Hi Guys,

>To add to what Mike said, you should keep the error traping code in the Error() method of the form, but remove the ON ERROR in the Click() event of the button.

Paul, If you're planning on making an industrial strength error handler, the Error() method in you're base classes for every control should be in sync with you're global error handler, passing on problems the object itself is not ready for. Check out the error handling article at www.stonefield.com is you wish to pursue this type of behaivor.

>The current object Error() method is allways the first method fired after an error has occured.

If Error() is not blank

>The ON ERROR may prevent the form from closing by keeping a reference to it.

Extremely good point.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform