Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Interaction between biz obj - design question
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
00990572
Message ID:
00990758
Views:
24
This message has been marked as a message which has helped to the initial question of the thread.
>>There is an event object in MM's that is meant for this type of thing (eg. when you have a process that requires a number of bizobjs to complete it's task).
>
>I know about Event object, but in my case I want to use some methods and properties of Calendar object inside the "main" biz object. Would Event object still work for me?

Yes, but I guess this really depends on how you are classifying what you are doing. If you're do some process that requires the interaction of a couple of bizobjs, then use the event class. If you are just doing something specific to a single bizobj that happens to require one or two other bizobjs, I would just instanciate them inside of my method(s) where I need them. If there is more than one method, then I prefer to create properties for each bizobj and create the references in the PostInitHook() (and add code to clear the references in the Destroy, eg. This.oMyBizObj = .NULL.).
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform