FindCategByNum

Declaration: TSpecCollection.FindCategByNum (CatNum: integer): integer;
The method FindCategByNum searches the category having the number CatNum. If found it returns the index of the category, else it returns -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.