.. highlightlang:: us .. index:: DocSaveModified .. _docsavemodified: DocSaveModified =============== .. us.tag DocSaveModified ENGLISH DocSet :ref:`DocSaveModified` saves the document if the modification flag is set. If the file does not exist a SaveAs dialog box will be displayed. .. function:: bool = DocSaveModified(hDoc) bool = DocSaveModified(hDoc, bAskUser) .. us.return **Return Value** If the function succeeds, the return value is TRUE (1); otherwise it is FALSE (0). .. us.params **Parameters** .. uparam:: hDoc Identifies the document. .. uparam:: bAskUser If *bAskUser* is TRUE (1) a message box with the question "Save Changes to UniPlot?" is displayed. Default value is FALSE (0). .. seealso:: :ref:`overview-documents`, :ref:`DocCreate`, :ref:`DocSetModifiedFlag`, :ref:`DocSave` :sub:`id-1035039`