>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.