字符串根据多个字符进行分割的一种方法
Dim s As String = "gtdfg123fdgdfs123dd123"
Dim c() As Char = {"1", "2", "3"}
Dim a() As String = s.Split(c)
Dim p As String
For Each p In a
If p <> "" Then
MessageBox.Show(p)
End If
Next
补充:Web开发 , ASP.Net ,
Dim s As String = "gtdfg123fdgdfs123dd123"
Dim c() As Char = {"1", "2", "3"}
Dim a() As String = s.Split(c)
Dim p As String
For Each p In a
If p <> "" Then
MessageBox.Show(p)
End If
Next
补充:Web开发 , ASP.Net ,
上一个:使用递归从数据库读取数据来动态建立菜单
下一个:运行时拉伸和移动控件的类