unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Grids;
type
TForm1 =
class(TForm)
StringGrid1: TStringGrid;
Label1: TLabel;
Button1: TButton;
Button2: TButton;
Button3: TButton;
Edit1: TEdit;
Edit2: TEdit;
Label2: TLabel;
Label3: TLabel;
procedure FormCreate(Sender: TObject);
procedure Edit2Change(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
var a: integer;
begin
randomize;
for a := 1
to 10
do
begin
StringGrid1.Cells[a-1,0] := inttostr(a);
end;
edit1.Text:='
?';
edit2.Text:='
?';
end;
procedure TForm1.Edit2Change(Sender: TObject);
var d : integer;
begin
Edit1.Text:=inttostr(d);
end;
end.