CaseCommandSaveAs executes the same code that is
behind the menu command Data-Save Case As in the IDE by default
(please note that you can override items in the Data menu using the
options listed under
Project - Data manager - Using disk files and folders - Data menu overrides).
It shows a dialog box in which the user can select a (new) case file,
and subsequently tries to save the data to that case file. Afterwards,
the active case will reference the selected case file.
The procedure returns 1 on success, or 0 if the user cancelled the operation in one of the dialog boxes. If any other error occurs, the procedure returns \(-1\) and
CurrentErrorMessagewill contain a proper error message.
- This function is only applicable if the project option
Data_Management_styleis set to
- This function 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