ui.Window.forName

Get a window object by name.

Syntax

ui.Window.forName(
   name STRING )
  RETURNING result ui.Window
  1. name defines the name of the window.

Usage

The ui.Window.forName() class method returns the ui.Window object corresponding to an identifier used to create the window with the OPEN WINDOW instruction.

Declare a variable of type ui.Window to hold the window object reference.

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