Hallo,
ich habe seit kurzem delphi und habe mich au glei drangesetzt und nen kleines rechnenprogramm gebastelt,
mit der addition und subtraktion geht alles, nur beim dividieren bringt mir das programm nen fehler,
Hier mal der quellcode:
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13:
| procedure TForm1.Button3Click(Sender: TObject); Var zahl1, zahl2, ergebnis: Real; begin zahl1 := StrToInt(Edit1.Text); zahl2 := StrToInt(Edit2.Text); ergebnis := zahl1 / zahl2; Label5.Caption := FloatToStr(ergebnis); begin
end;
end. |
und bei end. bringt er mir nen fehler:
[Error] Unit1.pas(70): ';' expected but '.' found
[Error] Unit1.pas(89): Declaration expected but end of file found
[Fatal Error] Project1.dpr(6): Could not compile used unit 'Unit1.pas'
Mfg Xan
Moderiert von
Christian S.: Delphi-Tags hinzugefügt