vb语言中 把一个字符串拆分,然后放到一个定长的数组中!

2024-11-13 06:49:17
推荐回答(2个)
回答1:

你可以使用mid()函数,我用过,可以

回答2:

Dim a(10) As Integer, b As Integer, myStr As String
myStr = "123"
For b = 1 To Len(myStr)
a(b - 1) = Val(Mid(myStr, b, 1))
Next
For b = 0 To UBound(a)
Print "a(" & b & ")=" & a(b)
Next