Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Switching DataSession's
Message
De
14/12/2004 01:44:36
Dorin Vasilescu
ALL Trans Romania
Arad, Roumanie
 
 
À
13/12/2004 11:02:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00968641
Message ID:
00969005
Vues:
10
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.
>
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform