TInspectorBar... version 1.13.2.1

Hello,

A TInspectorBar with a spinEdit. Min and max are set. Select the value in the spin edit, delete the text (backspace key), click on a another item, an exception is thrown. No way to stop it, that I have found.

Line 7614:
FInspectorSpin.InspectorItem.IntValue := FInspectorSpin.Value;

calls.

function TInspSpinEdit.GetValue: LongInt;
begin
  try
    Result := StrToInt (Text);
  except
    Result := FMinValue;
  end;
end;

Ideas?

Maybe

Result := StrToIntDef (Text,FMinValue);

and remove the exception.

Or ???

Mark

When you run the app in release mode outside the IDE, you should not see this exception.
When run from the IDE, the IDE shows all exceptions by default.

OK, thanks.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.