Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Private Session Parent - Default Session Child Help Need
Message
From
16/12/1999 10:05:41
 
 
To
16/12/1999 09:57:59
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00304650
Message ID:
00304655
Views:
30
>In reguards to the topic technique of your Parent Form having a Private data session and your Child Form set to default session.
>
>If you call the Child form from the parent form, it works great. However, if your framework has a DoForm method in the app object, and you call that method to invoke your child form, the child form ends up in the Default data session.
>
>How can you handle this? Putting a
>
>SET DATASESSION to (_Screen.ActiveForm.DataSessionID)
>
>Seems to leave unknown data session around.
>

Even if you reset it?


FWIW, I have never had this problem, because my framework doesn't use a DoForm method. Rather, all of my forms register themselves with the forms manager when they are started. This keeps me out of the parameter passing mess, lets me use DO FORM whenever I want, and avoids trouble like you are having here.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform