vb list 指定 删除
答案:3 悬赏:0
解决时间 2021-02-03 11:42
- 提问者网友:优雅ぉ小姐
- 2021-02-03 04:51
例如list中123#8989---999456#8989---567如果出有#8989则删除
最佳答案
- 二级知识专家网友:一池湖水
- 2021-02-03 05:10
Private Sub Command1_Click()
If List1.ListCount For i = 0 To List1.ListCount - 1
List1.List(i) = Replace(List1.List(i), "#8989", "")
Next
End Sub
If List1.ListCount For i = 0 To List1.ListCount - 1
List1.List(i) = Replace(List1.List(i), "#8989", "")
Next
End Sub
全部回答
- 1楼网友:啵啵桃汀
- 2021-02-03 05:41
Dim i As Integer
For i = List1.ListCount - 1 To 0 Step -1
If InStr(List1.List(i), "#8989") 0 Then
List1.RemoveItem i
End If
Next i
- 2楼网友:有钳、任性
- 2021-02-03 05:35
for i = 0 to list.listcount
if list.list(i) = "aaa" or list.list(i) = "abc" then
list.remove i
end if
next i
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯