vb.net 字符串怎么才能做成字符串数组

Dim strA() As string
Dim A,B,C As Integer
A = "123"
B = "234"
C = "345"

如何把A,B.C赋值给strA()

  Dim strA() As String
        Dim A, B, C As Integer
        A = "123"
        B = "234"
        C = "345"
        '见下面
        ReDim strA(2)
        strA(0) = A.ToString
        strA(1) = B.ToString
        strA(2) = C.ToString

温馨提示:答案为网友推荐,仅供参考
第1个回答  2014-06-09
Dim strA As New List(Of String) ' From {""}
Dim A, B As Integer
A = "123"
B = 234
strA.Add(A)
strA.Add(B)
相似回答