[Gambas-user] Sort multidimensional array?

Jussi Lahtinen jussi.lahtinen at ...626...
Tue Feb 7 23:58:00 CET 2017


Not sure what you are trying to do, but you just keep on adding things to
array B, and then adding the same reference of that array to array A.
Maybe you instead wanted this:

  Dim A As New Variant[]
  Dim B As Variant[]
  Dim i, j As Integer

  For i = 0 To 9
    B = New Variant[]
    For j = 0 To 19
      B.Add(i)
    Next
    A.Add(B)
  Next


Jussi


On Tue, Feb 7, 2017 at 9:28 PM, novae_lithic <scribe at ...3643...> wrote:

> Dim A As New Variant[]
>   Dim B As New Variant[]
>   Dim i, j As Integer
>
>   For i = 0 To 9
>     For j = 0 To 19
>       B.Add((ij))
>     Next
>     A.Add(B)
>   Next /
>



More information about the User mailing list