Home All Groups Group Topic Archive Search About

Accessing inherited variables

Author
5 Jun 2006 1:38 PM
MrJim
How should variables be declared so that those in the base form can be
changed in a form 'inherited' from it?

Author
5 Jun 2006 2:07 PM
Cor Ligthert [MVP]
Jim,

Normally you have to do nothing extra.

Moreover, you can not get rid of them.

Cor

Show quoteHide quote
"MrJim" <mrjim@nospam.com> schreef in bericht
news:e61c50$1v8g$1@godfrey.mcc.ac.uk...
> How should variables be declared so that those in the base form can be
> changed in a form 'inherited' from it?
Author
6 Jun 2006 1:36 AM
Michael D. Ober
Declare them public or protected.  Public will be available outside the
class while protected will be available only to derived classes.

Mike.

Show quoteHide quote
"MrJim" <mrjim@nospam.com> wrote in message
news:e61c50$1v8g$1@godfrey.mcc.ac.uk...
> How should variables be declared so that those in the base form can be
> changed in a form 'inherited' from it?