Test for window open

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

Syntax

Test for window open {window-instance-name}

Description

This command tests if the specified window instance is open. If the window instance is open, Omnis sets the flag, otherwise the flag is cleared. Window instances are opened with Open window instance or the $open() method.

Example

# Open the window wMyWindow if it is not already open
Test for window open {wMyWindow}
If flag false
  Open window instance wMyWindow
End If