Re: [Gambas-user] A random sort of listview

2009-04-12 Thread jbskaggs
Hi yourself! Here is the problem in the code: FOR i = 0 TO ListView1.Count - 1 ' write items in listview2 TRY PRINT myArray[i] listview1.MoveTo(myArray[i]) TRY c = listview1.Item.Key TRY PRINT myArray[i], listview1.item.key , c, counter i: , i, total count: , listview1.Count TRY

Re: [Gambas-user] A random sort of listview

2009-04-12 Thread Doriano Blengino
jbskaggs ha scritto: FOR i = 0 TO ListView1.count - 1 STEP 1 myArray[i] = i NEXT FOR i = ListView1.count - 1 TO 0 STEP -1 a = Int(Rnd(i + 1)) SWAP myArray[i], myArray[a] PRINT i, a NEXT Apart from the problem of missing records, there could be also a randomness problem in

Re: [Gambas-user] LinkedIn

2009-04-12 Thread Jeff
Cool. I have set it up. It will be interesting to see how many join. On Sat, 2009-04-11 at 22:28 +0200, Benoît Minisini wrote: Hey Benoit I thought about setting up a group on LinkedIn for Gambas users. Could help to spread the word. Are you ok with it or would you rather not? I am ok.

Re: [Gambas-user] sticker

2009-04-12 Thread Werner
cristian abarzua wrote: Hello. I sent you a sticker for their programs. I hope I do not bother Benoit Greetings nice :-) -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative

Re: [Gambas-user] A random sort of listview

2009-04-12 Thread jbskaggs
This works much better at getting a more shuffled list! Thanks Doriano Blengino wrote: jbskaggs ha scritto: FOR i = 0 TO ListView1.count - 1 STEP 1 myArray[i] = i NEXT FOR i = ListView1.count - 1 TO 0 STEP -1 a = Int(Rnd(i + 1)) SWAP myArray[i], myArray[a] PRINT i, a NEXT

Re: [Gambas-user] A random sort of listview

2009-04-12 Thread jbskaggs
You were correct! There was a extra comma in the data file that was breaking the loop! BTW to you an everyone else if you celebrate it, Happy Easter! If not ignore me. ;) JB SKaggs Simonart Dominique wrote: Hi again :) May be you did not see the last sentence of my answer wich is

Re: [Gambas-user] A random sort of listview

2009-04-12 Thread Dominique SIMONART
-- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com

[Gambas-user] Input box incorrect size of the text control. My first problem.

2009-04-12 Thread agrgal
Hi, everybody! Excuse my English. I've noticed an embarrasing 'bug' when I use an Input Box in my programs. Functionality isn't put at risk but looks horrible. I think an image is better than words... http://www.nabble.com/file/p23013689/inputbox.png How can I fix this problem? It happens

Re: [Gambas-user] A random sort of listview

2009-04-12 Thread Dominique SIMONART
Doriano Blengino a écrit : jbskaggs ha scritto: FOR i = 0 TO ListView1.count - 1 STEP 1 myArray[i] = i NEXT FOR i = ListView1.count - 1 TO 0 STEP -1 a = Int(Rnd(i + 1)) SWAP myArray[i], myArray[a] PRINT i, a NEXT Apart from the problem of missing records, there

[Gambas-user] X coordinate of a Form Frame. My Second Problem.

2009-04-12 Thread agrgal
I wrote some code to center a Form window, even the Desktop Size is different. Here it is: FMain.X = Int((Desktop.Width - FMain.Width) / 2) FMain.Y = Int((Desktop.Height - FMain.Height) / 2) Meanwhile the Form is resized regarding to the Y coordinate, it doesn't work as well for the X

Re: [Gambas-user] X coordinate of a Form Frame. My Second Problem.

2009-04-12 Thread jbskaggs
Have you tried me.center? agrgal wrote: I wrote some code to center a Form window, even the Desktop Size is different. Here it is: pcode FMain.X = Int((Desktop.Width - FMain.Width) / 2)/code/p pcodeFMain.Y = Int((Desktop.Height - FMain.Height) / 2)/code/p Meanwhile the Form is