Note the typo, it should read "B.Add(i)" ... the problem persists either way
7. Feb 2017 20:28 by ml-node+s8142n58416...@n7.nabble.com: > Thank you very much, Tobi, for the insights, and the link to the "GridView – > Sortierung der Daten" > > Based on that I tried to implement the following, to test the concept. But > the values for the rows (B) are the same in all cases (always 0 ...) as if > the variable "i" wasn't incrementing in the loop (but it is). > > What am I missing...where have I gone wrong? > > 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 > > > > > > If you reply to this email, your message will be > added to the discussion below:> > > http://gambas.8142.n7.nabble.com/Sort-multidimensional-array-tp58403p58416.html> > > > To unsubscribe from Sort > multidimensional array?, > click here> . > > NAML> -- View this message in context: http://gambas.8142.n7.nabble.com/Sort-multidimensional-array-tp58403p58417.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ 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