LoadUnchecked

Declaration: TSpdcSet.LoadUnchecked (FName: string; var SpdcCount: integer): integer;
Loads the spectral descriptors from the file FName. The variable parameter SpdcCount returns the number of loaded descriptors. The function returns the following error codes:
 0 .... everything OK, descriptors are loaded into the descriptor set
-1 .... invalid/unknown SPDC format
-3 .... no descriptors loaded, due to wrong file which does not contain descriptors
-4 .... no descriptors loaded, file is empty

Hint 1: The spectral groups of the loaded descriptors are not checked against the currently loaded data. You have to adjust them yourself by applying the method AssignGroups.

Hint 2: 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.