在listview中多选的时候怎么将多选的数据存放到数组中呢?
解决方案 »
- 是不是在递归中不能使用委托把信息传到界面控件上?
- 如何编程建立一个ftp服务器,不用想用类似Serv-U的软件
- 请教VB中Byte()数组如何转换成字符串?
- 请教一个SQL语句??
- 超级简单问题:Dim和Private的区别
- VB获得窗口顺序求助..
- ----====::内存中的bmp数据如何显示在picturebox之类控件上===============-------::::::::
- 如和随时知道自己的IP
- 关于RichtextBox的显示的问题
- dtpicker 日期控件如何更新数据库内容
- 怎么取得commondialog.showsave的纯文件名呀?
- 如何用代码结束一个指定名字的程序
Dim arrayList() As StringDim aCount As Integer
aCount = 0ReDim arrayList(0 To ListView1.ListItems.count) For i = 1 To ListView1.ListItems.count
If ListView1.ListItems(i).Selected = True Then
arrayList(aCount) = ListView1.SelectedItem.SubItems(2)
aCount = aCount + 1
End If
Next'输出值
Dim aa As String
Dim j As Integer For j = 0 To aCount - 1
aa = arrayList(j) & "-" & aa
Next
MsgBox aa
LVM_GETITEMSTATE获得状态
都也一样。