Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running code in a different session
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Running code in a different session
Miscellaneous
Thread ID:
00976711
Message ID:
00976711
Views:
36
Hi all,
I have a form with a private data session. A button has to perform an action that requires a number of tables to be opened then closed. I don't want these tables to interfere with the existing datasession so I thought I could use the session object to keep the tables separate.

This works fine except that the form appear to change datasession causing a couple of grids to become unbound.

Could someone point out were I am going wrong.
lnSessionID = ThisForm.DataSessionId
loSession = CreateObject("Session")
Set Datasession To loSession.DataSessionId
DO PrepairToOpenExhibition with lcDBF, lcTitle
Close Tables all
Set Datasession To lnSessionID
loSession = .NULL.
Many thanks
Caroline
Caroline
Next
Reply
Map
View

Click here to load this message in the networking platform