Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New DS in a program - have problems - Urgent!
Message
From
03/01/2001 11:53:30
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00458554
Message ID:
00458964
Views:
24
Vlad,

>...(natural purpose of session object - to use together with forms).

I'd say the natural purpose of the session object is to better provide for encapsulation without any thought about whether it's used with forms or without. Session-based objects can easily be called from strictly procedural code that has no form associated with it, so I do not agree that its main purpose is for use with forms.

Objects based on Session can easily be called from other objects, such as a COM server that instantiates multiple business objects in one of its methods. No forms involved there.

Session is also very useful for encapsulating blocks of old-style procedural code (which perhaps may open tables in certain work areas) as a first step in fast migration of older projects.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform