[Gambas-user] Bug in for..next cycle with negative step?

Laurent Carlier lordheavy at ...512...
Sat Sep 10 13:32:57 CEST 2005


PV a écrit :
> On 10/09/2005 13:07, Benoit Minisini wrote:
> 
>>
>> Can I have a complete project that has this bug ?
>>
> 
> In my case (version 1.9.20) the problem shows up even in the simplest
> project, that is a form with a button which has the click event attached
> 
> PUBLIC SUB Button1_Click()
> 
>   DIM i as Integer
> 
>   FOR i = 10 TO 1 STEP -1
>     PRINT "ciao"
>   NEXT
> 
> END SUB
> 
> and nothing else.
> 
> The loop is not entered, seems like it's skipped as if the step was
> positive.
> 
> 
> Ciao,
> Piero
> 

Does the click event is raised ? add a simple PRINT "Button1_Click"
before the loop to test, or a "breakpoint".

Regards,

-- 

Laurent Carlier
jabber : LordHeavy at ...943...




More information about the User mailing list