Close window instance

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


Close window instance window-instance-name


This command closes the specified window instance. Close window instance clears the flag and does nothing if the window is a private instance belonging to the current task. Alternatively you can use the $close() method to close a window instance.


Test for window open {wMyWindow}
If flag true
  Close window instance wMyWindow
End If
; Alternatively, you can do it like this
Do $root.$iwindows.wMyWindow.$close()