Forum Discussion
AlexKaras
14 years agoChampion Level 3
Hi Bertrand,
> Then i try to get the derived component base class:
If you are talking about classes hierarchy from the source code point of view (e.g. TObject -> TWindow -> TButton -> TBitButton -> ...) than for the native Windows applications it is not possible to find the name of the parent class during run-time because this information is needed only by the compiler during compile-time and is not saved in the debug information.
If you are looking for the run-time parent of the given object in the hierarchy shown in the TestComplete's Object Spy, then you can use the .Parent property of the given object.
> Then i try to get the derived component base class:
If you are talking about classes hierarchy from the source code point of view (e.g. TObject -> TWindow -> TButton -> TBitButton -> ...) than for the native Windows applications it is not possible to find the name of the parent class during run-time because this information is needed only by the compiler during compile-time and is not saved in the debug information.
If you are looking for the run-time parent of the given object in the hierarchy shown in the TestComplete's Object Spy, then you can use the .Parent property of the given object.
Related Content
- 5 years ago
- 4 years ago
Recent Discussions
- 20 hours ago
- 20 hours ago
- 5 days ago