Macro Language Reference > Macros > Window > wcl
  
wcl
Description
Closes the specified document window, without having to use the Close Document dialog.
 
Example 320. Close a document window
The macro shown below will close window 2, saving any work in progress, without you having to go through the Close Document dialog box.
wcl 2, "s"
Syntax
wcl window:n? options:s?
window
The number of the window number to be closed. If a window number is not given, the top window is closed.
options
a
Abandon work in progress.
s
Save work in progress (even if no changes have been made, i.e. force a save).