Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How are you using the Session Class?
Message
De
10/12/1999 07:56:23
Bob Tracy
Independent Consultant
Driftwood, Texas, États-Unis
 
 
À
09/12/1999 17:28:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00300919
Message ID:
00301583
Vues:
26
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform