vb listbox删除每行前半指定部分 例如 listbox1 aaa52135 aaa45236 处理过后 listbox2 52135 45236
例如listbox1aaa52135aaa45236处理过后listbox25213545236...
例如
listbox1
aaa52135
aaa45236
处理过后
listbox2
52135
45236 展开
listbox1
aaa52135
aaa45236
处理过后
listbox2
52135
45236 展开
2个回答
展开全部
Private Sub Command1_Click()
Dim n As String
For i = 0 To List1.ListCount - 1
For j = 1 To Len(List1.List(i))
If IsNumeric(Mid(List1.List(i), j, 1)) Then n = n & Mid(List1.List(i), j, 1)
Next
List2.AddItem n
n = ""
Next
End Sub
Dim n As String
For i = 0 To List1.ListCount - 1
For j = 1 To Len(List1.List(i))
If IsNumeric(Mid(List1.List(i), j, 1)) Then n = n & Mid(List1.List(i), j, 1)
Next
List2.AddItem n
n = ""
Next
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询