Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Datasessions
Message
From
22/03/2007 10:06:38
 
 
To
22/03/2007 09:11:22
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
01206843
Message ID:
01207052
Views:
21
Ed,

>I see you already received all answers, i.e. basically you can have as many datasessions as you want but you better control each switch explicitly in code, i.e. using SET DATASESSION TO every time you really want to do it.

I don't agree that you need to issue SET DATASESSION TO whatever number explicitly in every case.

For example, if you wrap up some old code inside methods of a class based on Session, you instantiate the class and call the methods without worrying about changing the datasession explicitly. As long as your class is well-encapsulated and doesn't depend on any state of databases or tables outside of itself, you don't need to explicitly set anything.
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