IndexOfSpec

Declaration: TSpecCollection.IndexOfSpec (ItemID: integer): integer;
Returns the index of the spectrum having the ID specified by ItemID. If ItemID contains an invalid value the function returns a value of -1.

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