Can anybody help me?
procedure TForm1.ButtonPlusLessClick(Sender: TObject);
var
pMinus: Real;
begin
pMinus := StrToFloat(txtResult.Text);
txtResult := FloatToStr(-1 * pMinus);
end;
The error that appears is the following: E2010 Incompatible types: 'TEdit' and 'string'.
txtResult
is aTEdit
.FloatToStr
returns aString
.The left/right part of this mapping are not equal:
I guess you want/should do this: