Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get private in a programmed class?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00640513
Message ID:
00640551
Views:
17
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform