Close top window

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

Syntax

Close top window

Description

This command closes the top window instance. As window instances are not automatically closed in Omnis, you can use this command to close the top window. No error occurs if there is no window open. This command clears the flag and does nothing if the top window is a private instance not belonging to the current task.

Example

# Close the top window if it is called 'wMyWindow'
If sys(50)='wMyWindow'
  Close top window
End If
# Alternatively, use notation to close the top window
Do $topwind.$close()