| Command group | Flag affected | Reversible | Execute on client | Platform(s) |
| Windows | YES | NO | NO | All |
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 openwMyWindow
If flag trueClose window instancewMyWindow
End If
# Alternatively, you can do it like this
Do$root.$iwindows.wMyWindow.$close()