Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error handler as a form Method
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00390920
Message ID:
00390930
Views:
48
>I am working with a fox 2.6 app that was converted to VFP 6.0. Many of the forms are contained within FormSets. So I am defining any custom methods or properties on the Formset rather than the form.
>
>I want to set ON ERROR to a formset method that I wrote so that I can save the ERROR(), MESSAGE(), etc. to form properties. I am calling the error handler from another custom method on the formset. I am getting the error, "THISFORMSET can only be used within a method". Since I am using it within a method the error handler must run outside of the formset.
>
>How can I call an error handler at still have all of the formset's properties available to the error handler?

How about passing an object reference of the formset to the error handler:

on error do myerrorhandler with error(), ... , ThisFormset
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform