ReduceSize

Declaration: TSpdcSet.ReduceSize (Size: integer): integer;
The method ReduceSize reduces the size of the descriptor set to Size descriptors. All spectral descriptors having an index greater than Size will be deleted. The function returns the following error codes:
 0 ... everything is OK
-1 ... Size must be between 1 and NumSpdcs-1
-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.