首页 > 其他 > 详细

返回ListBox选中的多项目

时间:2014-07-29 21:25:42      阅读:304      评论:0      收藏:0      [点我收藏+]
bubuko.com,布布扣
//返回ListBox选中的多项目
procedure TForm1.Button2Click(Sender: TObject);
var
i:Integer;
s:string;
begin
   for i:=0 to ListBox1.Items.Count-1 do
   if ListBox1.Selected[i] then
      s:=s+ListBox1.Items[i]+#13#10;
 
   showmessage(s);
end;
 
 
 




返回ListBox选中的多项目,布布扣,bubuko.com

返回ListBox选中的多项目

原文:http://www.cnblogs.com/xe2011/p/3876241.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!