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:19:44
 
 
À
15/04/1999 16:09:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00208751
Message ID:
00208771
Vues:
25
>Garret,
>
>Thanks for your quick answer.
>
>I really need to have this as a custom object, not in a form.
>

Base your class on a Form. You can set it to a private data session on visible=.f.

The only difference between this an a custom object other than the ability to have a private datasession within the object would be that would you not be able to drop the form on the form.

You would have to instaniate it programatically perhaps in your VISUAL forms init...

thisform.oDataObj = createobj('MyDataObj')

This is actually how Jim Booth suggest to create Business Objects in his book Advanced tehniques.

BOb
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform