delphi With DO的问题
procedureTForm2.Button1Click(Sender:TObject);vari:integer;beginSetLength(a,200);fori:...
procedure TForm2.Button1Click(Sender: TObject);
var
i:integer;
begin
SetLength(a,200);
for i := 0 to 199 do
begin
a[i] := TEdit.Create(self);
a[i].Parent := self;
a[i].AutoSize := False;
a[i].Height := (ClientHeight-Button1.Height-20)div 10;
a[i].Width := ClientWidth div 20;
a[i].Top := (i div 20)*a[i].Height;
a[i].Left := (i mod 20 )*a[i].Width ;
a[i].Text := inttostr(i+1);
end;
为什么我在procedure TForm2.Button1Click(Sender: TObject);
var
i:integer;
begin
SetLength(a,200);
for i := 0 to 199 do
begin
with A[i] do
TEdit.Create(self);
Parent := self;
AutoSize := False;
Height := (ClientHeight-Button1.Height-20)div 10;
Width := ClientWidth div 20;
Top := (i div 20)*a[i].Height;
Left := (i mod 20 )*a[i].Width ;
Text := inttostr(i+1);
end;
编译就出错呢 展开
var
i:integer;
begin
SetLength(a,200);
for i := 0 to 199 do
begin
a[i] := TEdit.Create(self);
a[i].Parent := self;
a[i].AutoSize := False;
a[i].Height := (ClientHeight-Button1.Height-20)div 10;
a[i].Width := ClientWidth div 20;
a[i].Top := (i div 20)*a[i].Height;
a[i].Left := (i mod 20 )*a[i].Width ;
a[i].Text := inttostr(i+1);
end;
为什么我在procedure TForm2.Button1Click(Sender: TObject);
var
i:integer;
begin
SetLength(a,200);
for i := 0 to 199 do
begin
with A[i] do
TEdit.Create(self);
Parent := self;
AutoSize := False;
Height := (ClientHeight-Button1.Height-20)div 10;
Width := ClientWidth div 20;
Top := (i div 20)*a[i].Height;
Left := (i mod 20 )*a[i].Width ;
Text := inttostr(i+1);
end;
编译就出错呢 展开
3个回答
2009-09-18
展开全部
procedure TForm2.Button1Click(Sender: TObject);
var
i:integer;
begin
SetLength(a,200);
for i := 0 to 199 do
begin
with A[i] do
begin
TEdit.Create(self);
Parent := self;
AutoSize := False;
Height := (ClientHeight-Button1.Height-20)div 10;
Width := ClientWidth div 20;
Top := (i div 20)*a[i].Height;
Left := (i mod 20 )*a[i].Width ;
Text := inttostr(i+1);
end;
end;
end;
var
i:integer;
begin
SetLength(a,200);
for i := 0 to 199 do
begin
with A[i] do
begin
TEdit.Create(self);
Parent := self;
AutoSize := False;
Height := (ClientHeight-Button1.Height-20)div 10;
Width := ClientWidth div 20;
Top := (i div 20)*a[i].Height;
Left := (i mod 20 )*a[i].Width ;
Text := inttostr(i+1);
end;
end;
end;
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询