R
rockchina
Unregistered / Unconfirmed
GUEST, unregistred user!
[]请问如何在Treeview中删除选中的若干个项
我用了如下代码,却只能删除第一条
//不能删除根节点
for i:=pred(treeview1.items.count) downto 0 do
if (treeview1.items.selected) and (treeview1.items.parent<>nil) then
treeview1.items.delete;
请高手指教!!!
我用了如下代码,却只能删除第一条
//不能删除根节点
for i:=pred(treeview1.items.count) downto 0 do
if (treeview1.items.selected) and (treeview1.items.parent<>nil) then
treeview1.items.delete;
请高手指教!!!