vb中当字符串中有多个分隔符时,如何分割
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励20(财富值+成长值)
展开全部
Private Sub Command1_Click()
Dim i As Integer
Dim strAll As String
Dim strCity() As String
strAll = "1,2,3,4,5"
strCity = Split(strAll, ",", , vbTextCompare)
For i = 0 To UBound(strCity)
List1.AddItem strCity(i)
Next
End Sub
Dim i As Integer
Dim strAll As String
Dim strCity() As String
strAll = "1,2,3,4,5"
strCity = Split(strAll, ",", , vbTextCompare)
For i = 0 To UBound(strCity)
List1.AddItem strCity(i)
Next
End Sub
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询