Declaration: TSpecCollection.Load (FName: string; FeedBack: boolean): integer;
The method Load loads the spectral collection data from 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 collection has been loaded; the returned number reflects the number of loaded spectra
-1 ... the file cannot be accessed

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