ui.Window.forName
Get a window object by name.
Syntax
ui.Window.forName(
name STRING )
RETURNS ui.Window
- 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.
The name of the window passed as parameter can use the same letter case as in the OPEN
WINDOW
instruction: The lookup is case-insensitive.
Example
DEFINE w ui.Window
OPEN WINDOW w1 WITH FORM "custform"
LET w = ui.Window.forName("w1")
...
For a complete example, see Example 1: Get a window by name and change the title.