Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Business objects newbie question
Message
De
31/03/2004 15:35:51
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00891196
Message ID:
00891289
Vues:
24
I would not have one property for each field. IMO, it limits your implementation too much.

If you want the BO in a separate data session, I would definately use the session object. Be aware of a bug in VFP6. The session object uses the default data session by default, so you'll have to set it to a private session.

>Maybe I did't explain myselft clearly. I was thinking of creating BO based on the form (but not data entry form) so that when data tables are opened within BO they would be handled in private session. And as you suggested, I would then instantiate the BO class in INIT of the data entry form. I thought that if I use a custom object as a base for BO class, the data would not be "encapsulated". But maybe I should rethink it.
>The question I had in my mind, mostly, when I posted the message is if it is correct to create a property for every field of the table where the data will be saved.
>Thank you so much for your input.
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform