Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get private in a programmed class?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00640513
Message ID:
00640551
Vues:
18
>Thanks Sergey
>I am developing with vfp7.
>How the hell do I "base my class on the session class" ?
>
>Rgds

Try this:
DEFINE CLASS MyClass AS SESSION

DATASESSION = 2 && private datasession

PROCEDURE Init
    USE MyTable in 0
ENDPROC

...
HTH :-)

>>>I am writing a class with code (define class myclass as custom).
>>>
>>>Is it possible to isolate the data access I do in it by creation a kind of private datasession by code ?
>>>
>>>Thanks
>>>Eric
>>
>>In this case you can base your class on the Session class. It requires at least VFP6 SP3.
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform