FirstSpecWithClassID

Declaration: TSpecCollection.FirstSpecWithClassID (ClassID: string): integer;
FirstSpecWithClassID returns the index of the first spectrum which has the class ID specified by the parameter ClassID. If no such spectrum exists, a value of -1 is returned.

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