Gil,
>I knew that it still worked, but I was concerned that you had left yourself open to ridicule from someone looking at that piece of code and saying "I thought business objects weren't supposed to directly call a 'form' PEM." And what's even more amazing is that I recognized this as not n-tier.
Actually, once you drop a business class on a form, it's perfectly legal to place UI-specific code in the methods of the business object...this is because you are working with an *instance* of the class, rather than the class itself. Another example is putting code in the PostRequeryHook() of a business object that requeries an associated ComboBox...perfectly legal--once you drop the business object on the form.
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com