Re: [Gambas-user] sort multidimensional arrays

2009-10-27 Thread Matti
I think I begin to understand. I'll try... ...may take some time... Thanks Matti Jussi Lahtinen schrieb: > Perhaps this way: > > Class1 > sName as String > iNumber as Integer > > > Dim oo as New Object[] > Dim item as New Class1 > > item.sName = "Max" > item.iNumber = 14 > > oo.Add(item) > >

Re: [Gambas-user] sort multidimensional arrays

2009-10-27 Thread Jussi Lahtinen
Perhaps this way: Class1 sName as String iNumber as Integer Dim oo as New Object[] Dim item as New Class1 item.sName = "Max" item.iNumber = 14 oo.Add(item) Jussi On Tue, Oct 27, 2009 at 00:52, Matti wrote: > > Benoît Minisini schrieb: > >> A workaround is using a Object[], and storing eac

Re: [Gambas-user] sort multidimensional arrays

2009-10-26 Thread Matti
Benoît Minisini schrieb: > A workaround is using a Object[], and storing each line of your table inside > by using a dedicated class, or another array. Hmm. Sounds good, but I can't imagine how to store "each line of your table" into an Object[] Could you give an example? ---

Re: [Gambas-user] sort multidimensional arrays

2009-10-26 Thread Benoît Minisini
> Is there a way to sort an array that has more than one dimension by telling > Gambas on which field the sorting shoiuld be done? > > For example, if I have the array > Max, 14 > Anna, 8 > Fabien, 7 > > I would expect the result of sorting by the first field to be > Anna, 8 > Fabien, 7 > Max, 1

Re: [Gambas-user] sort multidimensional arrays

2009-10-25 Thread Fabien Bodard
what is the array structure ? send an exemple please 2009/10/25 Matti : > Is there a way to sort an array that has more than one dimension by telling > Gambas on which field the sorting shoiuld be done? > > For example, if I have the array > Max, 14 > Anna, 8 > Fabien, 7 > > I would expect the r

[Gambas-user] sort multidimensional arrays

2009-10-25 Thread Matti
Is there a way to sort an array that has more than one dimension by telling Gambas on which field the sorting shoiuld be done? For example, if I have the array Max, 14 Anna, 8 Fabien, 7 I would expect the result of sorting by the first field to be Anna, 8 Fabien, 7 Max, 14 Instead, when using A