Status: Integer;
The Status property returns an error code. If no error happened, it returns zero.
Sub UserProc;
Var
a: Double;
Result: Integer;
Begin
a := Math.Sqrt(-10);
Result := Math.Status;
End Sub UserProc;
As a result the Result variable will contain error code 7.
See also: