General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only