随笔 - 807  文章 - 0 评论 - 43 阅读 - 57万

随笔分类 -  TListBox

delphi listbox 使用
摘要:listbox删除 删除选中的某个: procedure TForm1.Button1Click(Sender: TObject); var i:integer; begin i:=0; while i<listbox1.Count do//删除掉前一个后,下一个会上移,所以用while if li 阅读全文
posted @ 2012-10-08 20:39 del88 阅读(24) 评论(0) 推荐(0) 编辑
获取ListBox选中的值与删除当前选中的
摘要:方法一: if listbox1.itemindex <> -1 then showmessage(listbox1.items.strings[listbox1.itemindex]); 不知道是不是能解决你的问题 方法二: ListBox1.Items[ListBox1.ItemIndex] 不 阅读全文
posted @ 2012-10-08 20:37 del88 阅读(14) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示