The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Unit: SDL_statis
Class: none
Declaration: function LoadPLSModelComment (FileName: string; var Comment: string): integer;

The function LoadPLSModelComment reads the comment stored in a PLS model (using the method SaveModelCoefficients) without actually opening or creating the PLS model. LoadPLSModelComment is intended to be able to browse several PLS models on disk.

The parameter FileName is the filename of the PLS model to be read, the variable parameter Comment returns the comment. The function returns the following error codes:

0 everything is OK
-1 file not found
-2 the PLS model id is invalid
-3 file structure is invalid

Last Update: 2012-Oct-21