Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Switching DataSession's
Message
From
13/12/2004 12:52:23
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
13/12/2004 12:28:27
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:
00968817
Views:
9
>hello Dragan
>
>your suggestion with passing the ds id as a parameter would not have a different effect, because my code does find the correct ds id, that works fine, but it does not switch it (set ds to) - this portion does not work.

May depend on where you issue the command. In my experience, it needs to be inside the method you're calling. If you're doing it somewhere in its parent's methods or anywhere - it will switch the datasession to the one in which it's created as soon as it (the method, that is) starts executing.

>as to Dorin's idea, i though he ment just to instantiate a new (2nd) object on the form level, therfor it's already in the correct ds. but maybe i missunderstood him. i'll try his/your suggestion.
>
>but i still would not be too crazy about it, because that would mean that i have to go through some code, find where oToolBox is called, see if this would be called from within a form (from a class attached to the form ie).
>
>so unless i can get the 'set ds to' command to work, it looks like i got a mess on my hand - either way.

Did anyone say it'll be easy?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform