设该行号为i,如果知道ListItem的话,就是ListItem.Index。with ListView.Items.Insert( i+1 ) do
begin
...
end;with ListView.Items.Insert( i+2 ) do
begin
...
end;如果是循环,则为
with ListView.Items.Insert( i+1 ) do
begin
...
end;
Inc( i ); // 加完一行加1
begin
...
end;with ListView.Items.Insert( i+2 ) do
begin
...
end;如果是循环,则为
with ListView.Items.Insert( i+1 ) do
begin
...
end;
Inc( i ); // 加完一行加1
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货