cześć
wyskakuje mi błąd "Missing operator or semicolon" , nie bardzo wiem o co biega. TO prosty kalkulator z dwoma polami Edit i przyciskiem Button.
Prosze o pomoc.
var
Form1: TForm1;
arg1, arg2, wynik: Double;
implementation
{$R *.DFM}
function Suma(a,b:Double) : Double;
begin
Result:=a+b;
end;
function Roznica(a,b:Double) : Double;
begin
Result:=a-b;
end;
function Iloczyn(a,b:Double) : Double;
begin
Result:=a*b;
end;
{ ... itd }
procedure TForm1.SumaClick(Sender: TObject);
begin
arg1:=StrToFloat(Edit1.Text);
arg2:=StrToFloat(Edit2.Text);
wynik:=Suma(arg1,arg2); // <<<<<<<<<<<<<<<< -------------------- tutaj podświetla błąd.
end;
end.