GetNextCloseWindow Function

Class

MainWin.

Action

Returns the next window that the Close method will close.

Availability

This functionality is supported only if you are using the Open Agent.

Syntax

wNext = mainwin.GetNextCloseWindow()
Variable Description
wNext The top-most window in the application. WINDOW.

Notes

This function returns the application window that the Close method will close, if called. If only the MainWin is open, GetNextCloseWindow returns NULL.

Example

	[-] testcase GetNextCloseWindowExample()
		[ ] WINDOW w
		[ ] w = TextEditor.GetNextCloseWindow()
		[-] while(w != NULL)
			[ ] Print("Active window is", w)
			[ ] w.Close()
			[ ] w = TextEditor.GetNextCloseWindow()