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:
00027803
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.

Yep, you got it, and your welcome! <s>

Tom
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform