Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which type of class to use?
Message
From
03/01/2005 17:50:26
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00973101
Message ID:
00973956
Views:
22
>>I like the session class, which has to be created in a prg. The private datasession option then allows you to isolate your tables from the rest of your app in a secure way. We've found since switching to this kind oa scheme that our errors and data reliability has improved dramatically.
>
>Just intereted to know, how do you pass data between your objects when they all have private datasessions ?

Really good question! We try to get each module to do as much work as possible internally, ie quite a few tables are opened many times in different sessions. Doesn't seem to be any performance issue. Where we do need to pass data we either pass in the datasessionid or use XML. I asked Ken Levy about possibility of doing something like
Select * from mytable into cursor mycursor datasessionid x
but he couldn't see the justification at the time.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform