[Gambas-user] multidimensional array of integers

gaupe hennie at ...1826...
Mon Jan 14 16:10:56 CET 2008


In some way i am not able to get how a multidimensional array in gambas works
I have tried this in a hundred ways
it seems something soooo simple but i cant work it out....

What i want is 

dim a as new integer[]
or .... dim a as new integer[1,2]     [0,0] doesnt seem to be allowed)

then insert elements

like a.add([1,5])   (but that does not function in this case....)

fill dynamic an array with an array of two integers

like 

1   5             ( this is the first element so print a[0,0],a[0,1]  gives
1 5
2   4
3   2
4   6
5   3
6   1


then i want to sort the array so the second vertical row gets sorted and the
first row comes with
after the sort then the array looks like this

6  1
3  2
5  3
2  4
1  5
4  6
-- 
View this message in context: http://www.nabble.com/multidimensional-array-of-integers-tp14803157p14803157.html
Sent from the gambas-user mailing list archive at Nabble.com.





More information about the User mailing list