Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Encapsulating a DataSession in a customer object?
Message
De
15/04/1999 16:07:20
 
 
À
15/04/1999 15:58:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00208751
Message ID:
00208758
Vues:
23
>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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform