Set CurrentCase

CurrentCase

The predefined element parameter CurrentCase contains a reference to the currently active case within an AIMMS project.

ElementParameter CurrentCase {
    Range      :  AllCases;
}

Definition

The element parameter CurrentCase contains an (integer) case reference (as an element of AllCases) to the currently active case within an AIMMS project, or is empty if the active case is not named.

Updatability

The element parameter CurrentCase is used in both data management styles Single_Data_Manager_file and Disk_files_and_folders. When using Single_Data_Manager_file, the value of CurrentCase can only be modified by actively loading another case either in the Data Manager, through the Data menu, or using the functions CaseLoadCurrent and CaseSaveAs. When using Disk_files_and_folders, the value of CurrentCase can only be modified by actively loading or saving a case through the Data menu, or by using the functions CaseFileSetCurrent, CaseCommandLoadAsActive, CaseComandSave, CaseComandSaveAs or CaseCommandNew.

See also

The set AllCases, the element parameter CurrentDataSet. Loading and saving cases is discussed in full detail in Working with Cases.