Description: This function returns the object value of the root (original) module displayed in the same window.
Returns: Object
Usage: Script or Steady State
Format: RootWindow(Object)
Parameters: Object { Object value} { required } { no default: }
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());
See Also: