Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proper Encapsulation Techniques?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00131613
Message ID:
00131934
Vues:
12
>Michael,
>
>You have to separate the bizObjs properties from the fields in the tables. You data bind to the properties of the bizobj and then provide an Update method for updating the fields from the properties. In this scenario the interface controls are not directly altering the fields, they are altering properties of the bizobj, the buzobj will update the tables when its update method is called.

This thread is most instructive. Where do you put your field-level validationand/or field-level security using this approach (and VFP 5.0)?

>
>In VFP6 I've used Assign methods to do this, in VFP5 my bizobj has a SetField() method that takes two arguments, the field name and the value to assign. I prefer this to the individual properties approach because a generic bizobj can hide a lot more of the functionality thus reducing the code added to each specific bizobj class definition.
----------
Mark Bucciarelli
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform