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 <scr...@tuta.io> 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 / > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user