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.

Example

DEFINE w ui.Window
OPEN WINDOW w1 WITH FORM "custform"
LET w = ui.Window.getCurrent()
...

For a complete example, see Example 2: Get a the current form and hide a groupbox.