ListView如何取得全部多选后的Key值?

晨光暮曲 2003-09-12 12:09:16
如:我选择了3个,那如何取得这个3个的Key值!
注:3不是个定值!:P
...全文
53 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
晨光暮曲 2003-09-12
  • 打赏
  • 举报
回复
已经做出来了!好像只能用For来做:)来者毕送!
lxcc 2003-09-12
  • 打赏
  • 举报
回复
dim itemx as listitem
for each itemx in listview1.listitems
if itemx.Selected=True then
debug.print itemx.Key
endif
next
lxcc 2003-09-12
  • 打赏
  • 举报
回复
for i=1 to listview1.listitems.count
if listview1.listitems.item(i).selected=true then
yijiansong 2003-09-12
  • 打赏
  • 举报
回复
选中的应该有个集合,自己一个个取就行
晨光暮曲 2003-09-12
  • 打赏
  • 举报
回复
谁会呀:(

1,451

社区成员

发帖
与我相关
我的任务
社区描述
VB 控件
社区管理员
  • 控件
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧