- Procedure CaseDialogConfirmAndSave
CaseDialogConfirmAndSave shows and handles the
standard confirmation dialog box, in which the user is asked whether he
wants to save the currently active data before continuing.
The procedure returns 1 if the user chooses not to save the data, or if the user chooses to save the data and the save was executed successfully. It returns 0 if the user cancelled any of the dialog boxes. If any other error occurs, the procedure returns \(-1\) and
CurrentErrorMessagewill contain a proper error message.
This procedure is only applicable if the project option
Data_Management_styleis set to
This procedure returns 0 if the IDE is not loaded, for example when running the component version of AIMMS, or when running with the command line option
This procedure does not check whether the data needs to be saved; that check should be made by the calling code, prior to calling this procedure.
If the user confirms to save the data, the function
CaseDialogSaveis called. If no active case file exists, this implies that the
CaseDialogSaveAsis called instead.