Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Private datasession for a class
Message
De
11/06/2002 13:36:15
Joel Leach
Memorial Business Systems, Inc.
Tennessie, États-Unis
 
 
À
11/06/2002 10:54:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00666940
Message ID:
00667022
Vues:
27
>Does any one know how I can have a Custom Class AUTOMATICALLY use a private datasession?
>
>I know that I can :
>1. createobject('session')
>2. switch to the new datasession
>3. createobject('myCustomClass')
>3. switch back to the old datasession
>
>But I want myCustomClass to do all that internally.

Hi Bill,

I would do something like this in the Init() of myCustomClass:
This.oDS = CreateObject('session')
Set DataSession to (This.oDS.DataSessionID)
This assumes, of course, that you have an oDS property on your custom class.
Joel Leach
Microsoft Certified Professional
Blog: http://www.joelleach.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform