Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Switching DataSession's
Message
From
14/12/2004 01:44:36
Dorin Vasilescu
ALL Trans Romania
Arad, Romania
 
 
To
13/12/2004 11:02:50
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:
00969005
Views:
11
Hi
After struggling some time with data session switching behaviour, I've ended using utility methods that rely on current form data session by storing reference of object into forms properties.

One example of something that didn't work.
oApp.oTableUtils = CREATEOBJECT('tableUtils')
in main program
and then
oApp.oTableUtils.navigateTable({alias},'next')
at form level didn't worked because data session was switched
But this work if in form Init a reference to utility object is stored in a form property
thisform.oTableUtils = CREATEOBJECT('tableUtils')
thisform.oTableUtils.navigateTable({alias},'next')
SET DATASESSION command is not needed.


>Hello Dorin
>
>That sounds like it would work, because oToolBox was then created on the 'formlevel'. however, if possible i prefere not to do this, because then i have 2 oToolBox objects.
>
>but as a last resort i'll have to do this.
>
>i is just strange that the set ds to does not work - what is for then?
>
>thanks for your help.
>
>
Previous
Reply
Map
View

Click here to load this message in the networking platform