Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
User BizObj on 6.1.2 Usersform
Message
 
To
18/01/2002 17:02:33
Gil Munk
The Scarborough Group, Inc.
Baltimore, Maryland, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00606171
Message ID:
00607077
Views:
23
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform