level 1
acdxxx177
楼主
m = 0
Do While m = List1.ListCount
d = List1.List(m)
For i = 0 To List1.ListCount - m
If d = List1.List(i) Then
t = t + 1
List1.RemoveItem (List1.List(i))
end if
Next i
List1.AddItem d & " " & t
m = m + 1
Loop
代码如上,我想把List1列表框里重复的删除并重新输入list1,并且显示数目,以后用Trim分开
列:
本来列表框里是:
0000
1111
2222
3333
aaaa
0000
1111
2222
3333
0000
这些数字是随机的
过滤以后就是这样
数字 数量(这行不用显示)
0000 3
1111 2
2222 2
3333 2
aaaa 1
但是,我这行代码不知道这么回事没用啊,也没任何提示,请指点下!!
2009年09月27日 06点09分
1
Do While m = List1.ListCount
d = List1.List(m)
For i = 0 To List1.ListCount - m
If d = List1.List(i) Then
t = t + 1
List1.RemoveItem (List1.List(i))
end if
Next i
List1.AddItem d & " " & t
m = m + 1
Loop
代码如上,我想把List1列表框里重复的删除并重新输入list1,并且显示数目,以后用Trim分开
列:
本来列表框里是:
0000
1111
2222
3333
aaaa
0000
1111
2222
3333
0000
这些数字是随机的
过滤以后就是这样
数字 数量(这行不用显示)
0000 3
1111 2
2222 2
3333 2
aaaa 1
但是,我这行代码不知道这么回事没用啊,也没任何提示,请指点下!!