ImportFromAnotherSpColl

Declaration: TSpecCollection.ImportFromAnotherSpColl (Source: TSpecCollection; SpecList: TIntArray): integer;
The function ImportFromAnotherSpColl imports selected spectral collection data from another spectral collection and appends it. The parameter Source defines the collection to import from. The array parameter SpecList contains the list of item IDs to be imported. Spectra in SpecList which are not available in the source collection are ignored.

The function returns the following error codes:

>0 ... everything is OK, the function returns the number of imported spectra
-1 ... the spectral types of the spectral collections do not match
Hint: In order to access the spectral collection currently loaded in the Spectral Collection Editor you can use the pre-declared global variable SCData.