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

PV oreip at ...1...
Fri Sep 9 13:05:47 CEST 2005


Hi all,

I just noticed this doesn't work

DIM i as Integer

FOR i = 10 TO 1 STEP -1
   PRINT "ciao"
NEXT

The loop is exited immediately, so no "ciao" is printed.

Is this a bug or have I missed some syntax changes in the devel version? (by 
the way, I'm using 1.9.20).


Take care,
Piero




More information about the User mailing list