.. highlightlang:: us .. index:: AppQuit .. _appquit: AppQuit ======= .. us.tag AppQuit ENGLISH App Changed5120 :ref:`AppQuit` closes UniPlot. .. function:: bool = AppQuit() bool = AppQuit(nErrorLevel) .. us.return **Return Value** If the function succeeds, the return value is TRUE (1); otherwise it is FALSE (0). .. us.params **Parameters** .. uparam:: nErrorLevel Is a number that is returned to the calling program. If called with the parameter *nErrorLevel* UniPlot will be terminated immediately. Unsaved documents are not saved. If the function is invoked without the parameter *nErrorLevel* the user will be asked to save unsaved documents. .. us.example **Example** :: AppQuit() .. us.history **History** .. list-table:: :header-rows: 1 * - Version - Description * - 5.12.0 - *nErrorLevel* can be set. .. seealso:: :ref:`overview-application-object`, :ref:`AppGetCommandLine` :sub:`id-1424160`