Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Encapsulating a DataSession in a customer object?
Message
From
15/04/1999 16:07:20
 
 
To
15/04/1999 15:58:02
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00208751
Message ID:
00208758
Views:
24
>Hi All,
>
>Am I dreaming or is there a way to encapsulate
>data from tables in a custom object?
>
>What I would like to do is have my custom object
>open some tables associated with it in a private
>data session that would be visible only to the
>object itself.
>
>The object would open its related tables upon
>instantiation.
>
>I have tried creating a DataEnvironment object on
>the fly with success, but there does not seem to
>be a way of opening tables inside it on the fly...
>
>Anybody has done something similar?
>Anybody has ideas?
>Am I dreaming here ??? ;)
>
>Thanks in advance
>Pascal
Hey Pascal. The DE has init and destroy procedures you can tailor. I'm not sure you can create your own DE class. As far as the data being visible to the object only, you can protect the variables that hold the information. Is this what you are trying to do?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform