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
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
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.
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
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
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
--
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
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
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
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
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
11 matches
Mail list logo