Save

Declaration: TSpecCollection.Save (FName: string; FeedBack: boolean): integer;
The method Save stores the spectral collection data in the file FName.

The parameter FeedBack controls whether the save command display a progress bar. Please note that unless the script progress bar is already visible you have to make it visible before calling Save, 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 is OK, the particle data have been stored successfully
-1 ... the calibration data was not initialized (use InitCalib)

Hint: In order to access the spectral collection currently loaded in the Spectral Collection Editor you can use the pre-declared global variable SCData.