> > 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.thats excatly my point, the all talk about its encapsulation .. but in real its NOT! ( beside a virtual Object encapsulation)
>
> With public variables there is no possibility at all.
>
Yes If you need get/set Assign method you cant do it with PUBL ...
> 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.com> President: Toronto Ontario FoxPro User's Group