RootWindow

(Engine-Level Function)

Description: Returns the object value of the root (original) module displayed in the same window.
Returns: Object
Usage: Script or steady state.
Function Groups: Basic Module,  Window
Related to: ParentWindow | Window
Format: RootWindow(Object)
Parameters:  
Object
Required. Any expression that returns an object value. This is the object value where the search starts for the root window.
Comments: The return value may be the same as Object if Object is the root module of its window.
For modules in non-child windows (i.e. one without bit 9 set), RootWindow and ParentWindow will return the same value. For child windows, RootWindow will return the root module in the child window, while ParentWindow will return the root module in the child window's closest non-child calling window.

Example:

rootWin = RootWindow(Self());