Gambas Documentation - /comp/gb.qt4/window/close

# Window.Close (gb.qt4)

Function Close ( [ Return As Integer ] ) As Boolean

Closes the window, and returns an optional integer value used by the ShowModal method.

If the Window is not persistent (Window.Persistent = False, the default), then the window is destroyed after the Close() method was called. This means that any object or variable contained in the Window will also be destroyed, losing its value.

### See also

- Window Life Cycle