ui.Application.getWindows() returns ui.Window objects array of opened windows.
Syntax
ui.Application.GetCurrent().getWindows()
Arguments
takes no input arguments
Usage and examples
MAIN
DEFINE win DYNAMIC ARRAY OF ui.Window
OPEN WINDOW w WITH 20 rows, 50 columns
LET win = ui.Application.GetCurrent().getWindows()
DISPLAY win[1].getIdentifier()
DISPLAY win[2].getIdentifier()
CALL fgl_getkey()
END MAIN