The method LoadTrnData loads the training dataset specified by the full path filespec FName. The format of the training data must conform to the TDTS file format. Training data can be created by means of the Dataset Editor.
The function returns the following error codes:
0 ... everything is OK, training data is loaded
-1 ... file FName does not exist
-2 ... the training data cannot be loaded (invalid format etc.)