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

PV oreip at ...1...
Sat Sep 10 13:22:17 CEST 2005


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




More information about the User mailing list