GetParentClass Function

Action

Returns the parent class of the specified class. Returns NULL if the class has no parent class.

Syntax

dWinParentClass = GetParentClass (dWinClass)
Variable Description
dWinParentClass The name of the parent class of dWinClass or NULL, if none. DATACLASS.
dWinClass The class whose parent class you want to identify. DATACLASS.

Example

[ ] //My declarations
[ ] window MainWin TestApplication
[-] window DialogBox xCheckBox
	[ ] 
[-] main ()
	[ ] LIST OF WINDOW lw = {TestApplication, xCheckBox}
	[ ] WINDOW w
	[-] for each w in lw
		[ ] RelatedClasses(w)
	[ ] 
[-] testcase RelatedClasses(WINDOW w) appstate none
	[ ] Print ("Class is: {ClassOf(w)}, Parent Class is: {GetParentClass(ClassOf(w))}")
	[ ] 
	[ ] // Testcase returns for TestApplication and xCheckBox:
	[ ] // Class is: MainWin, Parent Class is: MoveableWin
	[ ] // Class is: DialogBox, Parent Class is: MoveableWin