Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pass datasession to another form
Message
 
To
08/10/2004 18:26:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00949759
Message ID:
00950239
Views:
22
John,
> When I did this the other day - launching a form from a form that has a
> private dataseesion, causes the launched form to use the default datasession,
> not the private datasession of the calling form. I would like to see an option
> for the functionality you described though, is there a way?

Just tried it:

create two forms (TEST_DS1 and TEST_DS2) place a button on each of them with the code
acti screen
? set(Datasession)
Add a second button to TEST_DS1 with code like
do form TEST_DS2
and set DataSession to 2 (private) on TEST_DS1 leave it on 1 (Default) with TEST_DS2

now call TEST_DS1 and play with the buttons. Should work

You could also "Use" a table in TEST_DS1 and check Used() in TEST_DS2.

If Your forms behave different I assume You somewhere manually set DATASESSION somewhere

HTH

Frank
Regards from Berlin

Frank

Dietrich Datentechnik (Berlin)
Softwarekombinat Teltow (Teltow)

Frank.Dietrich@dd-tech.de
DFPUG # 327
Previous
Reply
Map
View

Click here to load this message in the networking platform