FindSpdc

Declaration: TSpdcSet.FindSpdc (DescName: string): integer;
The method FindSpdc searches the set of descriptors for a descriptor having the name DescName. If a descriptor exists which matches the specified name the index of this descriptor is returned (range 1 to NumSpdcs), otherwise the function returns a zero value. The search for the descriptor name is not case sensitive.

Hint: In order to directly access the currently loaded spectral descriptors (those which are displayed in the Spectral Descriptor Editor) you can use the pre-declared global variable SPDCData.