closeWindow()

You can use the consoleLib.closeWindow() system function to clear the specified window from the screen. The function releases the resources associated with the cleared window, and activates the previously active window.

After you call consoleLib.closeWindow(), the window cannot be reopened with consoleLib.openWindow() or consoleLib.openWindowByName().

You cannot close the SCREEN window.

Syntax

  consoleLib.closeWindow(window Window in)
window
The window object to be removed from the screen.

Example

The following example shows the consoleLib.closeWindow() function:

  window1 WINDOW {
    name="customerWindow", 
    position = [2,2], 
    size = [18,75], 
    color = red, 
    hasborder=yes};
  ...
  consoleLib.closeWindow(window1);

Feedback