Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Switching DataSession's
Message
From
13/12/2004 13:22:23
 
 
To
13/12/2004 13:17:06
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00968641
Message ID:
00968832
Views:
7
Cetin, all 3 show ds id 1. so it's not switching at all


>Gunnar,
>I didn't expect it to change the data session. It's already in that session. Only wanted to note &CommandDS was wrong. You could test this way:
>
>
if Type("_screen.ActiveForm") = "O" and !isnull(_screen.ActiveForm)
> if _screen.ActiveForm.Datasession = 2 && Private
>    set datasession to _screen.DataSessionID
>    _screen.Print('Screen'+trans(set("DataSession"))+chr(13))
>    set DataSession to _screen.ActiveForm.DatasessionId
>    _screen.Print('ActiveForm'+trans(set("DataSession"))+chr(13))
>    set DataSession to
>    _screen.Print('Current'+trans(set("DataSession"))+chr(13))
> endif
>endif
>Cetin
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform