Assign

Declaration: TSpecCollection.Assign (Source: TSpecCollection);
The method Assign copies the TSpecCollection instance specified by the parameter Source. The function returns a zero value if everything is OK, or -1 if the particle data cannot be copied.

Hint 1: In general, the statement Destination := Source; is not the same as the statement Destination.Assign(Source);. The first statement makes Destination referring to the same object as Source, whereas the second statement copies the contents of the object referenced by Source into the object referenced by Destination.

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