
Can I subclass a form field control?
Hi Mr. XML,
This is not exactly what you're referring to but you can call the same code from the onexit macro in each formfield and determine the name of the active formfield in a functio with code.
This way you won't have to write different procudures for different formfields but can write some general code that uses the name of the current formfield.
See:
"How to find the name of the current formfield"
http://www.mvps.org/word/FAQs/TblsFldsFms/GetCurFmFldName.htm
Hope this helps,
regards,
Astrid
So that all can benefit from the discussion, please post all follow-ups to the newsgroup.
Visit the MVP Word FAQ site at http://www.mvps.org/word/
Quote:
> There is certain functionality that I want in my form field controls.
> For instance, I want particular resize code to run for most of my text
> form controls. I can do this through delegation, but that requires me
> to add code for each control, just not as much code. I would really
> like to avoid writing duplicate code and hope that I can subclass these
> controls. Is this doable?
> Thanks,
> Mr. XML