TListView的多选问题! 我在使用TListView控件时Multiselect=true;HideSelection=false;style=report,请问我不连续的选择多行时,怎样将这些被选中行(Item)的Caption读出来??? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用循环测试每一项是否被选中然后用IF 判断再将选中的项 的CAPTION值取出来 在ONITEMSELECT的过程中有一个参数就是你要的CAPTION的下标。 procedure TForm1.Button2Click(Sender: TObject);var i:integer;begin with Listview1 do if SelCount>=1 then begin for i:=ItemIndex to Items.Count-1 do if items[i].Selected then memo1.Lines.Add(items[i].Caption); end;end; 只是广告请大家支持下。。谢谢!http://community.csdn.net/Expert/topic/3632/3632147.xml?temp=.2835962http://community.csdn.net/Expert/topic/3607/3607671.xml?temp=.128689 关于FastReport 你们那么懒!!!!!!!!!! 刚过3级数据库,为前途迷茫中,接分请顺便安慰本人几句! com+ 组件的释放问题 请问如何打包Delphi7.0的程序,用什么打包软件? 请简述一下如何发布midas服务器和客户端?(50分) 请教一个关于事务的问题! 七嘴八舌来说说,请大家罗列出三层数据库系统的优势。 什么是C/S模式 难题!!急救!!在线等待 模拟按键 一个数据库插入语句的问题,比较奇怪
然后用IF 判断再将选中的项 的CAPTION值取出来
var
i:integer;
begin
with Listview1 do
if SelCount>=1 then
begin
for i:=ItemIndex to Items.Count-1 do
if items[i].Selected then
memo1.Lines.Add(items[i].Caption);
end;
end;
请大家支持下。。谢谢!
http://community.csdn.net/Expert/topic/3632/3632147.xml?temp=.2835962
http://community.csdn.net/Expert/topic/3607/3607671.xml?temp=.128689