Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How are you using the Session Class?
Message
From
10/12/1999 07:56:23
Bob Tracy
Independent Consultant
Driftwood, Texas, United States
 
 
To
09/12/1999 17:28:04
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00300919
Message ID:
00301583
Views:
24
Hi David,

SessionBase could look like this:

DEFINE CLASS cSession AS session
oDataClass = .F.
PROCEDURE Create
LPARAMETERS tcClass,tcLibrary
THIS.oDataClass = NEWOBJECT(tcClass,tcLibrary)
RETURN THIS
ENDPROC
ENDDEFINE

You could call it like this:

oSession = NEWOBJECT('cSession','session.prg')
oData = oSession.Create('DataFactory','xVFPData')
oData.oDataClass.TestSession()

where 'DataFactory' is some data handling class in 'xVFPData.VCX. If method 'TestSession' opened a table, it would open in the default session of oSession (2 - Private).

I'm like you, sure wish I knew more about how this stuff was supposed to work.
I hope Charlie reponds with some additional info.

Regards

>>>oSession = NEWOBJECT("SessionBase","Session.PRG")
>>>oData = oSession.Create("DataSelector","SomeVCX.VCX")
>
>So Charlie,
>
>What's in your "SessionBase"?
Bob Tracy

Never engage in a battle of wits if you're only half armed.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform