Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Private datasession for a class
Message
From
11/06/2002 13:36:15
Joel Leach
Memorial Business Systems, Inc.
Tennessee, United States
 
 
To
11/06/2002 10:54:55
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00666940
Message ID:
00667022
Views:
28
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform