Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remove something from a parent class
Message
 
 
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:
01161721
Views:
12
Mark,

You can use RemoveObject() at runtime, but you can't delete them at design time. You have to know for sure ahead of time though that you aren't going to break the class by removing the object. If there are any class methods that reference the removed object they will error.

You may want to revisit the design of that class and perhaps conditionally instantiate the component in the class.

>When we subclass we cannot remove any object in the subclassed class. Is it possible to overcome that and remove some objects?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform