Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG ?: Hidden properties on subclass has code limit.
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00778289
Message ID:
00778473
Views:
15
>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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform