Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where to place ERROR routine?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00027735
Message ID:
00027803
Views:
23
>>>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/
Previous
Reply
Map
View

Click here to load this message in the networking platform