Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where to place ERROR routine?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00027735
Message ID:
00027789
Vues:
25
>>I have placed code in a forms ErrorEvent method to trap certain errors. On this form are three text boxs and a subclass of a navigation class of mine.
>>
>>As an example, one of the errors I trap for is record in use. If the user tries to edit the value in a textbox it triggers the forms ErrorEvent. If the user selects Delete button from navigator, a MESSAGEBOX asks for confirmation and then delete is issued. In this case the forms ErrorEvent is not being triggered and I get the VFP error dialog.
>>
>>Is there a better place to have my error handling that will catch everything?
>
>Colin
>
>FWIW, the ErrorEvent only handles Errors in Methods. On Error handles the rest. ErrorEvent fires first & them On Error is no ErrorEvent exists.
>
>HTH,
>Tom

Tom,

Thanks for the tip! What does FWIW stand for? If it means "For What It's Worth", it's worth a lot. Now I can finish and deliver my app.

Thanks again, Colin.
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform