unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 =
class(TForm)
e1: TEdit;
e2: TEdit;
Label1: TLabel;
Label2: TLabel;
Button1: TButton;
Button2: TButton;
Label3: TLabel;
anzahl: TLabel;
wort: TLabel;
Button3: TButton;
procedure Button3Click(Sender: TObject);
procedure Button1Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
wort:
string;
merker:integer;
implementation
{$R *.dfm}
procedure TForm1.Button3Click(Sender: TObject);
begin
close;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
wort:=e1.Text;
Button1.Enabled:=false;
Button2.Enabled:=true;
e1.Text:='
########';
e1.Enabled:=false;
e2.Enabled:=true;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
wort:='
';
merker:=0;
end;
procedure TForm1.Button2Click(Sender: TObject);
var wort2:
string;
begin
inc(merker);
showmessage(inttostr(merker));
wort2:=e2.Text;
showmessage(wort);
showmessage(wort2);
end;
end.