IStatMethod.ErrorByStatus

Fore Syntax

ErrorByStatus(Status: Integer): String;

Fore.NET Syntax

ErrorByStatus[Status: integer]: string;

Parameters

Status. Error number. Use the Status property to get this number.

Description

The ErrorByStatus property returns an error message by the error number.

Fore Example

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.

Fore.NET Example

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:

IStatMethod