You can use the consoleLib.closeWindowByName() system function to clears the named window from the screen. The function releases the resources associated with the closed window, and activates the previously active window.
After you call consoleLib.closeWindowByName(), you cannot reopened the window with consoleLib.openWindow() or consoleLib.openWindowByName().
You cannot close the SCREEN window.
The function is similar to consoleLib.closeWindow(), except that it refers to the value of the name property of the window rather than to the window itself. EGL requires this variant for compatibility with I4GL.
consoleLib.closeWindowByName(name STRING in)
The following example shows the consoleLib.closeWindowByName() function. For the window definition used in the example, see closeWindow().
consoleLib.closeWindowByName("customerWindow");