Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Private Session Parent - Default Session Child Help Need
Message
 
To
16/12/1999 09:57:59
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00304650
Message ID:
00304795
Views:
30
Bob,

Give your form class a property for OldDataSession. Then in your child form you can do this in the Init;
LPARAMETERS WhateverYouAlreadyHave, pnDataSession
Thisform.OldDataSession = Thisform.DataSessionID
SET DATASESSION TO pnDataSession
...
In the child form's Destroy put this code;
LOCAL lnDS
lcDS = ALLTRIM(STR(Thisform.OldDataSession))
SET DATASESSION TO &lnDS
The orphaned data sessions result NOT from using set datasession but from NOT reseting the data session when you are done.
Previous
Reply
Map
View

Click here to load this message in the networking platform