ShowSpecCollEditor

Declaration: ShowSpecCollEditor (SpecToShow: integer; Filter: string): integer;
Displays and refreshes the Spectral Collection Editor. The parameter SpecToShow contains a spectral collection ID and controls which spectrum of the collection is to be initially displayed. Setting SpecToShow to a zero value displays the first spectrum in the (filtered) list of collection items.

The Filter parameter can be used to narrow down the list of displayed spectra.

The function returns the following error codes:

 0 ... everything is OK, the spectral collection is displayed, showing the spectrum defined by SpecToShow
-1 ... the spectrum specified by SpecToShow is not available (no spectrum is shown)
-2 ... the specified spectrum is available but is not part of the filtered list (no spectrum is shown)