>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