Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataSession property in SESSION class
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00628364
Message ID:
00628513
Vues:
14
>>>Hi,
>>>I am using session class as my base class. I define DATASESSION = 1 in my baseclass. However, datasession always be 2-private datasession once I create an instance of object. Any ideas?
>>>
>>>Thank you
>>
>>See mskb #Q258737.
>
>Now ain't that special. I would never have thought to use the session class where it can inherit whatever datasession creates it. Since it is a very light weight class, this could come in handy. But it just kind of seems to defeat the purpose of what a session class should be by definition.

Mark,
If you use the session class for your business objects, you may want it to participate in the datasession that creates it.

For example, if you use it in a form's processing. If you AddObject the session to the form, it will participate. If you use CreateObject/NewObject instead, you have either set the datasession manually or have it not create a new datasession.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform