ReDim Preserve to a Multi-Dimensional Array in Visual Basic 6

前端 未结 10 582
孤城傲影
孤城傲影 2020-11-29 09:44

I\'m using VB6 and I need to do a ReDim Preserve to a Multi-Dimensional Array:

 Dim n, m As Integer
    n = 1
    m = 0
    Dim arrCity() As String
    ReDi         


        
10条回答
  •  佛祖请我去吃肉
    2020-11-29 10:08

    In regards to this:

    "in my task I have to change the whole array (2 dimensions"

    Just use a "jagged" array (ie an array of arrays of values). Then you can change the dimensions as you wish. You can have a 1-D array of variants, and the variants can contain arrays.

    A bit more work perhaps, but a solution.

提交回复
热议问题