RemoveSpdc

Declaration: TSpdcSet.RemoveSpdc (idx: integer): integer;
The method RemoveSpdc deletes the spectral descriptor referenced by idx (which is the index of the descriptor, valid range: 1..NumSpdcs). The function returns the following error codes:
 0 ... everything is OK
-1 ... invalid idx parameter
-2 ... descriptor set is empty

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.