如何遍历一个FORM中动态创建的checkbox控件群 for i := 0 to Self.ComponentCount - 1 if Self.Components[i] is TCheckBox then begin // how do do end; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 1.先定义一个CHECKBOX的数组2.之后是FOR...TO... //加入处理过程 procedure TForm1.DoCheckBox;var i:integer; tl:TList; tc:TCheckBox;begin tl := TList.create; try self.GetTabOrderList(tl); for i := 0 to tl.count - 1 do begin tc := TL[i]; if (tc is TCheckBox) then //do something end; end; finally tl.free; end;end; delphi登录百度的程序 在线的都来看看,拉我一把! 求助 如何把焦点移到上一控件? 怎样删除明细表的记录! 请教 如何把double型的值改为integera ,谢谢 能否推荐几本学习数据库的好书(关于delphi) 请问如何完全编译程序?(30分相送)急!急!急! 如何将桌面上图标的文字背景设置为透明?? 请各位大侠赶快帮帮忙? 如何在程序运行期动态设置控件焦点顺序?急!!!
2.之后是FOR...TO...
//加入处理过程
var
i:integer;
tl:TList;
tc:TCheckBox;
begin
tl := TList.create;
try
self.GetTabOrderList(tl); for i := 0 to tl.count - 1 do
begin
tc := TL[i];
if (tc is TCheckBox) then
//do something end;
end; finally
tl.free;
end;end;