Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object and datasessions (again)
Message
De
21/07/1999 16:28:01
 
 
À
21/07/1999 16:23:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00244270
Message ID:
00244353
Vues:
26
>Hi Edward
>I put
>set datasession to (_screen.activeform.datsessionid)
>in the method and it works, but I still do not understand why I should do that. Does each datasession has it's own set of public variables ? Or does each object have a property linking to the datasession it was created in ?
>TIA,
>Alex.

There is no explicit relations between object scoping and datasession. If you put some code in object method then VFP will fire it and apply to current datasession, i.e. it's your responsibility to set datasession appropriate to your code purpose.
The only implicit connection between object and datasession is Controlsource property, because it will trigger some internal code accessing data. Again, any external (you own written) code should explicitly assume in what datasession you are now.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform