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)
>
>
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
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?
---
> 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
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
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