这是我到目前为止的位置,当我在编辑框中输入一个数字并按下它崩溃的按钮时,我是 Delphi 的新手,请帮忙!谢谢,马特
var
Form3: TForm3;
Count: integer;
RunningTotal: Real;
implementation
{$R *.dfm}
procedure TForm3.btnEnterClick(Sender: TObject);
begin
repeat
RunningTotal:= RunningTotal + STRTOINT (edtNum.Text);
until STRTOINT(edtNum.Text)=0;
lblAns.Caption:= FLOATTOSTR (RunningTotal);
end;
procedure TForm3.edtNumChange(Sender: TObject);
begin
end;
procedure TForm3.FormCreate(Sender: TObject);
begin
Count:=0;
RunningTotal:=0;
end;
end.