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;
zufall :
array[0..9]
of integer;
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
var a,b : integer;
zufall :
array[1..10]
of integer;
begin
randomize;
a:=1;
for a:=1
to 10
do
begin
StringGrid1.Cells[a-1,0]:=inttostr(a);
b:=random(0-99);
zufall[a,0]:=b; (Fehler hier!)
end;
edit1.Text:='
?';
edit2.Text:='
?';
end;
procedure TForm1.Edit2Change(Sender: TObject);
var a,b : integer;
c :
array[0..9]
of integer;
begin
Edit1.Text:=inttostr(a);
strtoint(a):=b;
c[a,0]:=Edit2.Text;( Fehler hier!)
end;
end.