PRB: Class Browser Does Not Recognize Inheritance
Article ID: 131941
Article Last Modified on 2/15/2000
APPLIES TO
- Microsoft Visual FoxPro 3.0 Standard Edition
This article was previously published under Q131941
SYMPTOMS
The Class Browser (Browser.app) displays only the methods, properties, and
members that were added directly to the class. What you do not see are any
methods, properties, or members that the class inherited from a parent
class.
For example, you create a text box class <parent class> and add a new
method to the class. Then you creast a new class based on <parent class>
and a method is added to this <subclass>. In the properties sheet under the
Method tab, you can see that the inherited method from the <parent class>
is shown with the method added in the <subclass>. However, when you run the
Class Browser and select the <subclass>, the Class Browser displays only
the method added directly to the <subclass>.
STATUS
This behavior is by design. The class browser only shows members of the
immediate class, not of any parent classes.
There are two reasons for this:
- It would be difficult, slow, and possibly problematic to open every
associated .VCX file of all parent classes when scrolling through the
class list to find all the inherited methods.
- The inherited members can be displayed in the Class Designer by using
either the Properties sheet or the Class Info dialog box.
Additional query words: VFoxWin
Keywords: KB131941