Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding class heirachy
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00080957
Message ID:
00080992
Views:
26
Replay for Bill also:

The Parent property returns the parent container and not the parent class. The easiest way to get the containership hierarchy is SYS(1272).

For class hierarchy you should use the ParentClass property. It's very easy to build this hierarchy:

Take the parentclass and instantiate an object of that class and so on until the BaseClass property equals the Class property.

Bill: Be careful with this method, when you create an object, some methods are run and this can execute unwanted code... :) Why do you need this?

Vlad

>oSomeClass.Parent.Parent.PropertyOrMethod
>
>Wouldn't the 1st parent be ctrSubClass and the 2nd parent be ctrBase?
>
>But I may not fully understand what you mean by "locate" the parents of ctrSubSubClass.
>
>Steve
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform