Removes the active display window. Be aware that the last window (and any child windows owned by the last window) cannot be removed. You cannot call this function as an exit command (see Page Properties) or from a Cicode Object.
0 (zero) if successful, otherwise an error is returned.
! Removes the active display window.