Re: [Gambas-user] Sort multidimensional array?

2017-02-07 Thread Jussi Lahtinen
Not sure what you are trying to do, but you just keep on adding things to array B, and then adding the same reference of that array to array A. Maybe you instead wanted this: Dim A As New Variant[] Dim B As Variant[] Dim i, j As Integer For i = 0 To 9 B = New Variant[] For j = 0 T

Re: [Gambas-user] dynamic created Menus

2017-02-07 Thread Karl Reinl
Am Montag, den 06.02.2017, 15:36 +0100 schrieb Fabien Bodard: > I think the good way is this one :-) > > Public Sub AddMenuFromOutsideForm(hMenu As Menu) > Dim hMenuItem As Object > Dim hParent As Object = Object.Parent(hMenu) > > hMenuItem = New Menu(hMenu) > hMenuItem = New Menu

Re: [Gambas-user] Sort multidimensional array?

2017-02-07 Thread novae_lithic
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,

Re: [Gambas-user] Sort multidimensional array?

2017-02-07 Thread novae_lithic
Thank you Gianluigi - your DynamicMatrixExmaple was one of the first I explored when starting with Gambas - it's a very useful learning aid. cheers. -- View this message in context: http://gambas.8142.n7.nabble.com/Sort-multidimensional-array-tp58403p58420.html Sent from the gambas-user mailin

Re: [Gambas-user] Sort multidimensional array?

2017-02-07 Thread novae_lithic
Hi Matti, Thank you for your response. I had been considering a similar approach, as it allows me to leave out the columns I wouldn't need. So it's great to see your robust implementation of it. cheers. -- View this message in context: http://gambas.8142.n7.nabble.com/Sort-multidimensional-ar

Re: [Gambas-user] Sort multidimensional array?

2017-02-07 Thread novae_lithic
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

Re: [Gambas-user] dynamic created Menus

2017-02-07 Thread Gianluigi
Hello Charlie, Your project does exactly what I wanted. Thank you very much Regards Gianluigi 2017-02-07 13:29 GMT+01:00 Charlie : > Karl seems happy now. I have modified the program for you Gianluigi, does > this do what you want? >

Re: [Gambas-user] dynamic created Menus

2017-02-07 Thread Charlie
Karl seems happy now. I have modified the program for you Gianluigi, does this do what you want? MenuExample.tar - Check out www.gambas.one -- View this mes

Re: [Gambas-user] dynamic created Menus

2017-02-07 Thread Karl Reinl
Am Montag, den 06.02.2017, 15:36 +0100 schrieb Fabien Bodard: > I think the good way is this one :-) > > Public Sub AddMenuFromOutsideForm(hMenu As Menu) > Dim hMenuItem As Object > Dim hParent As Object = Object.Parent(hMenu) > > hMenuItem = New Menu(hMenu) > hMenuItem = New Menu

Re: [Gambas-user] Sort multidimensional array?

2017-02-07 Thread Rolf-Werner Eilert
Hi Matti, I don't find your method so dirty - I have used it a lot of times myself. And I use it in table-like arrays with more than 2 columns, all as strings. However, I use a character which does not appear in normal strings, like TAB (chr$(9)) or chr$(6). To pack and unpack a single line,

[Gambas-user] [Gambas Bug Tracker] Bug #1065: Icon does not appear in tray

2017-02-07 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1065&from=L21haW4- Comment #10 by Abdul ZAGIROV: Tried new revision and it works in Ubuntu, KUbuntu and LUbuntu. But the problem still exists in XUbuntu. -- Check out t

Re: [Gambas-user] Sort multidimensional array?

2017-02-07 Thread Gianluigi
Hi Richard, See my project DynamicMatrixExample, in Examples of Gambas Software Farm Regards Gianluigi 2017-02-07 0:30 GMT+01:00 Tobias Boege : > On Mon, 06 Feb 2017, Riccardo wrote: > > Hi, > > > > Is it possible to use the array.sort() method on a two-dimensional array? > > > > > > > > > > >