Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Proper Encapsulation Techniques?
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00131613
Message ID:
00131934
Views:
13
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform