[Gambas-user] Sort multidimensional array?

novae_lithic scribe at ...3643...
Tue Feb 7 20:33:24 CET 2017


Note the typo, it should read "B.Add(i)" ... the problem persists either way 


7. Feb 2017 20:28 by ml-node+s8142n58416h34 at ...3046...:


> 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.


More information about the User mailing list