Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tip of the Day
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00278095
Message ID:
00278168
Views:
18
As a sample:

I have the modal Print Options form which is called from many other forms with Private Datasession. It uses the Default datasession setting, so it has an access to the calling form datasession and runs the reports from it. But in order to debug this form I have to make it non-modal for the tests and that's where I change its datasession.

*PrintOptionsForm.Init()
IF glDebugMode
SET DATASESSION TO _screen.activeform.datasessionID
ENDIF


>Hi David,
>This is correct, but sometimes I want to keep both forms with Private datasessions.
>
>>Nick,
>>
>>If you set the child form DS to Default it'll open up in the parent form's DS.
>>
>>>One of the things I use it for - to get the calling form datasession ID if I need to.
>>>
>>>lnDatasessionId = _screen.activeform.DataSessionId
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform