Dominique SIMONART ha scritto:
> 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]
>>
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:
>
> FMain.X = Int((Desktop.Width - FMain.Width) / 2)
> FMain.Y = Int((Desktop.Height - FMain.Height) / 2)
>
> Meanwhile the Form is resized regarding to
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 coordi
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
> Ap
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 whate
--
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
_
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 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], my
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 E
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?
> >
>
>
Hi again :)
May be you did not see the last sentence of my answer wich
is written in 3 places? Your code is just fine and I don't
have any problem with the ListViews. Of course, I had to
initialize the ListView1 with my own data like this:
FOR i = 0 to 21
ListView1.Add(Str(i), "number " &
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 al
12 matches
Mail list logo