Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG ?: Hidden properties on subclass has code limit.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00778289
Message ID:
00778473
Vues:
16
>Hi
>
>1. Define one Class X with properties 'Prop' PUBLIC or PROTECTED.
>2. Use 'Prop' on Code of Class.
>( typical is the case of one class to sell or to use from others )
>
>3. SubClassing Class X to Y.
>4. On Y uses Code of X
>5. On Y HIDDEN 'Prop'
>
>Result:
>Class X don't see 'Prop'
>
>Consequence -> Subclassing Black Box has BIG Limits.
>
>Click on txclass1 and txsubclass1.

I don't understand the problem here. You specifically told Fox that that was a HIDDEN property, which means that it's not accessible outside of its own class definition. So, therefore, when the Messagebox from the parent class tries to access that property, you should get an error, which I did. What do you expect to happen?

If you want the property to be accessible from related class definitions, try PROTECTED.
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform