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