注册 登录
编程论坛 Delphi论坛

scrollbox内控件的删除问题

zhansong333 发布于 2006-05-09 16:23, 826 次点击
在scrollbox内动态生成了一组radiogroup, 现在想将其删除 ,
但保留scrollbox !!!!
用什么语句实现?
我用过 free; 但用过之后就不能再用了!!!
请指教下~~~~[
em13]
1 回复
#2
laimama2006-05-12 22:46
for x:=scrollbox1.ComponentCount-1 downto 0 do
begin
if (scrollbox1.Components[x] is Tradiogroup) then
scrollbox1.Components[x].Free;
end;
1