Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Event object does not use a private data session
Message
 
To
13/02/2002 15:52:49
Fabian Valencia
Calamos Asset Managment Inc.
Naperville, Illinois, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00619686
Message ID:
00619875
Views:
11
Fabian,

>I'm trying to use the MMF and for now we have a few pieces incorporated in our system, unfortunatly without having to spend more time we can't use more.
>In the process of using the event objects, I'm wondering why this object does not use a private data session, if I drop this object in a form, anything that the business objects do will affect the form data session. This does not seem to be safe, is there any advantages on doing this?
>Has somebody run into this same situation? Maybe I'm if we would be using the whole framework it would make more sense?

You're right...typically if you're working with an application you've created from the ground up you wouldn't tend to have a critical class between the data used by the event object and business objects with the data being loaded by the form...this is because event objects allow you to either instantiate new instances of business objects OR use existing objects already instantiated on a form.

Probably the easiest way to *completely* segregate data loaded by a non-Framework form and that loaded by your event object is to compile the event/business objects as a COM server and instantiate the event object from the COM server within 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
Reply
Map
View

Click here to load this message in the networking platform