vb.net 截取字符串
4个回答
展开全部
Dim a() As String, ss As String
ss = "1,2,3,4,5"
a = Split(ss, ",")
Dim i As Integer
For i = 0 To UBound(a)
Print a(i)
Next
用dim a()定义动态数组a,再用split给数组赋值
ss = "1,2,3,4,5"
a = Split(ss, ",")
Dim i As Integer
For i = 0 To UBound(a)
Print a(i)
Next
用dim a()定义动态数组a,再用split给数组赋值
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
如果是一个数组,那用循环输出不就行了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
我没看错的话,你说的1,2,3,4,5,6 是数组
Dim Text(1, 2, 3, 4, 5, 6) As Integer
For Each i As Integer In Text
Debug.WriteLine(i)
Next
Dim Text(1, 2, 3, 4, 5, 6) As Integer
For Each i As Integer In Text
Debug.WriteLine(i)
Next
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询