• progeCAD in French Language
  • progeCAD in Spanish Language
  • progeCAD in English Language
Home > Support > Quit method example 

Quit method example

Quit method example

Quit method example

This example demonstrates how to use the Quit method to close the drawing and exit progeCAD.

 

Private Sub QuitExample()

     Msg = "Really want to quit?"

Title = "Quit Method Example"

Style = vbYesNo + vbCritical + vbDefaultButton2 ' Define buttons.

Response = MsgBox(Msg, Style, Title)

If Response = vbYes Then     ' User chose Yes.

     Application.Quit

End If

End Sub

 
DWG is the native file format for Autodesk AutoCAD®. Autodesk and AutoCAD are registered trademarks or trademarks of Autodesk, Inc. in the USA and/or other countries. progeSOFT and progeCAD are registered trademarks or trademarks of progeCAD s.r.l. in the USA and/or other countries.