Close other windows

20% Command group 20% Flag affected 20% Reversible 20% Execute on client 20% Platform(s)
Windows NO NO NO All

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