GefApplication.Quit (method)

Closes all windows and exits the application.
Syntax: object.Quit SaveChanges
Parameters:
Optional SaveChanges As GefSaveChangesEnum - If specified, determines how CimEdit handles screens with unsaved changes. The default is gefSaveChangesPrompt. This parameter is ignored by CimView.
Description: If used with CimEdit when it is the current owner of the clipboard, the application will continue to run (with no windows open) until another application takes ownership of the clipboard.

Example:

Sub Application_Quit()
    
    Dim oCimApp As GefApplication
    Set oCimApp = CimGetScreen.Application
    oCimApp.Quit gefSaveChangesYes
    
End Sub