> the main question would be how we define that PUBL Vars work.
>
> You could say that:
>
> PUBL cFirstName
>
> is the same as
>
> _screen.addproperty("cFirstName")
>
I agree with Andy and Borislav, but I take a different perspective. Using a subclass, and not the baseclasses, I have the power and even the responsibility to create an object with either get/set methods or access/assign methods to encapsulate the properties. Without these methods, encapsulation is somewhat theoretical.
With public variables there is no possibility at all.
I can tell you of a system I saw approximately 2 years ago where because of public variables and no private datasessions, patients could have been killed.
Mike Yearwood
www.foxridgesoftware.comPresident: Toronto Ontario FoxPro User's Group