To meet your needs, we constantly work to improve Querix products.
This means that Lycia documentation is developing as well.
In case you have found a certain dissonance between the provided information and the actual behavior of Lycia 3 and/or your applications, please, let us know about this via documentation@querix.com so that we can introduce the necessary changes to our documentation.
Thank you for your attention and cooperation.
This method is used with a variable of the WINDOW data type to close windows opened by the Open() or OpenWithForm() methods as well as windows initialized in the DEFINE statement for a ui.Window variable:
CALL win_var.Close()
This method accepts no arguments and returns no values. It closes the window associated with the WINDOW variable it is used with regardless of which window is the current one.
Closing a window opened with form closes also the form. Closing a window frees a WINDOW variable used and it can be used with the Open() or the OpenWithForm() method again to open another window.
Example program:
MAIN
DEFINE win ui.Window
OPEN WINDOW w WITH 20 ROWS, 40 COLUMNS attribute (border)
DISPLAY "5,5" AT 5,5
OPEN WINDOW w1 WITH 20 ROWS, 40 COLUMNS attribute (border)
LET win = ui.Window.ForName("w")
MENU
ON ACTION "CloseW"
CALL win.Close()
ON ACTION 'Exit'
EXIT MENU
END MENU
END MAIN