Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Obtaining datesession number
Message
From
21/08/2003 13:56:51
 
 
To
21/08/2003 08:59:44
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00822149
Message ID:
00822281
Views:
14
>how can i obtain the datasession number
>because i want to do
>
>
>set datasession to [number]

In the case that you're working with an object that doesn't want/need/can't reference all the way back to the form, you can use:
LOCAL nSession
nSession = SET("DATASESSION")
.
.
.
SET DATASESSION TO nSession
One thing I learned the hard way is that if you change the datasession for any reason, be sure to put it back where you found it before you exit your method.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform