ui.Window.getCurrent
Get the current window object.
Syntax
ui.Window.getCurrent()
RETURNS ui.Window Usage
The ui.Window.getCurrent() class
method returns the ui.Window object corresponding
to the current window.
Declare a variable of type ui.Window to
hold the window object reference.
When invoking the ui.Window.getCurrent() method to get the initial default
"screen" window, an OPEN FORM/DISPLAY FORM must have been
executed. Otherwise, the method will return NULL. To create a form dynamically in
the initial "screen" window, see ui.Window.createForm.
Example
DEFINE w ui.Window
OPEN WINDOW w1 WITH FORM "custform"
LET w = ui.Window.getCurrent()
...