Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remove something from a parent class
Message
From
13/10/2006 10:23:19
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
13/10/2006 09:12:40
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01161714
Message ID:
01161739
Views:
14
>When we subclass we cannot remove any object in the subclassed class. Is it possible to overcome that and remove some objects?

As the others had said, you may want to rethink your class rather than going this way.

If you don't have the time, the simplest way is to just return .f. from such objects' .init - which will make them not instantiate. If they are mentioned in code anywhere, though, this will cause a nasty error.

Another way is to just make them invisible (by setting this.visible=.t. or this.left=-2000 in .init) if possible. Not sure you can do this for all possible kinds of objects - pages in a pageframe, or columns in a grid - but it would work for those that have these properties.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform