ErrorByStatus(Status: Integer): String;
ErrorByStatus[Status: integer]: string;
Status. Error number. Use the Status property to get this number.
The ErrorByStatus property returns an error message by the error number.
To execute the example, add a link to the Stat system assembly.
Sub UserProc;
Var
LinR: ISmLinearRegress;
stat: Integer;
Begin
LinR := New SmLinearRegress.Create;
stat := LinR.Status;
Debug.WriteLine(LinR.ErrorByStatus(stat));
End Sub UserProc;
After executing the example the console window displays an error message by the obtained number of execution status.
Imports Prognoz.Platform.Interop.Stat;
…
Public Shared Sub UserProc();
Var
LinR: ISmLinearRegress;
stat: Integer;
Begin
LinR := New SmLinearRegress.Create();
stat := LinR.Status;
System.Diagnostics.Debug.WriteLine(LinR.ErrorByStatus[stat]);
End Sub;
After executing the example the console window displays an error message by the obtained number of execution status.
See also: