unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;
type
TForm1 =
class(TForm)
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
RadioButton1: TRadioButton;
RadioButton2: TRadioButton;
RadioButton3: TRadioButton;
RadioButton4: TRadioButton;
RadioButton5: TRadioButton;
RadioButton6: TRadioButton;
Edit1: TEdit;
Edit2: TEdit;
Edit3: TEdit;
Button1: TButton;
Edit4: TEdit;
Button2: TButton;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.Button1Click(Sender: TObject);
var
i:integer;
j:integer;
h:integer;
begin
i:=StrToInt(Edit1.Text);
j:=StrToInt(Edit2.Text);
h:=StrToInt(Edit3.Text);
i:=random(6)+1;
j:=random(6)+1;
h:=random(6)+1;
Edit1.Text:=IntToStr(i);
Edit2.Text:=IntToStr(j);
Edit3.Text:=IntToStr(h);
end;
procedure TForm1.Button2Click(Sender: TObject);
var
Konto:integer;
begin
Konto:=StrToInt(Edit4.Text);
Konto:=Konto-1 ;
Edit4.Text:=IntToStr(Konto);
end;
end.