W wwiipp Unregistered / Unconfirmed GUEST, unregistred user! 2007-10-24 #1 在FORM1上有Panel1和BUTTON.我想点BUTTON然后就清除panel1里的控件请问这个怎么样实现
Y ysai Unregistered / Unconfirmed GUEST, unregistred user! 2007-10-24 #2 for i := panel1.ControlCount - 1 downto 0 do panel1.Controls.Free;
W wwiipp Unregistered / Unconfirmed GUEST, unregistred user! 2007-10-24 #4 ysai 大哥昨的不行呢? procedure TForm1.Button1Click(Sender: TObject); begin for i := panel1.ControlCount - 1 downto 0 do panel1.Controls.Free; end; end. 这里出错:for i := panel1.ControlCount - 1 downto 0 do
ysai 大哥昨的不行呢? procedure TForm1.Button1Click(Sender: TObject); begin for i := panel1.ControlCount - 1 downto 0 do panel1.Controls.Free; end; end. 这里出错:for i := panel1.ControlCount - 1 downto 0 do
S skyroom007 Unregistered / Unconfirmed GUEST, unregistred user! 2007-10-24 #6 procedure TForm1.SpeedButton1Click(Sender: TObject); var i :integer; begin for i := panel1.ControlCount - 1 downto 0 do panel1.Controls.Free; end;
procedure TForm1.SpeedButton1Click(Sender: TObject); var i :integer; begin for i := panel1.ControlCount - 1 downto 0 do panel1.Controls.Free; end;
X xingkong97 Unregistered / Unconfirmed GUEST, unregistred user! 2007-10-24 #8 怎么会不行呢? 楼上写的都对啊,注意: 必须这样写: for i := panel1.ControlCount - 1 downto 0 do 而不能: for i :=0 to panel1.ControlCount - 1 do
怎么会不行呢? 楼上写的都对啊,注意: 必须这样写: for i := panel1.ControlCount - 1 downto 0 do 而不能: for i :=0 to panel1.ControlCount - 1 do
X xxprcm Unregistered / Unconfirmed GUEST, unregistred user! 2007-10-24 #10 procedure TForm1.Button2Click(Sender: TObject); var I: integer; begin for i := panel1.ControlCount -1 downto 0 do Panel1.Controls.Free; end;
procedure TForm1.Button2Click(Sender: TObject); var I: integer; begin for i := panel1.ControlCount -1 downto 0 do Panel1.Controls.Free; end;