Close other windows

Command groupFlag affectedReversibleExecute on clientPlatform(s)
WindowsNONONOAll

Syntax

Close other windows

Description

This command closes all but the top window instance. As window instances are not automatically closed in Omnis, you can use this command to close all window instances except the top window instance. The Close other windows command does not close private instances which do not belong to the current task.

Example

# Close all other windows

If
 
len
(
sys
(51))
 
## more than 1 window open

  
Close other windows

End If