ui.Window.getCurrent

Get the current window object.

Syntax

ui.Window.getCurrent()
  RETURNING result 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()