FindSpdcByCaption

Declaration: TSpdcSet.FindSpdcByCaption (Caption: string): integer;
The method FindSpdcByCaption searches the set of descriptors for a descriptor having the caption Caption. 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.