SaveILabFile

Declaration: SaveILabFile(FName: string; Feedback: boolean): integer;
Saves the current data file using the filename specified by FName. The parameter FName has to contain the full path specification of the Epina ImageLab file. If the filename does not contain any path the file will be stored in the current working directory of Epina ImageLab.

If the parameter FeedBack is TRUE a visual feedback of the loading progress is provided. Please note that unless the script progress bar is already visible you have to make it visible before calling SaveILabFile, otherwise the feedback will not be displayed. You can activate the script progress bar by calling the function ScriptBar(0).

The function returns the following error codes:

 0 ... everything OK, data successfully stored
-1 ... error when saving the .cube file
-2 ... error when saving the .imsk file
-3 ... error when saving the .scll file
-4 ... error when saving the .ilab file
-5 ... error when saving the .anno file