Page 1 of 1
STEP Value.l
Posted: Fri Mar 17, 2006 9:41 pm
by Hroudtwolf
Hello Fred and PureBasic-Team,
I have a great wish again....

Please, make it possible to use a 'Long' with 'STEP'.
It would be very, very useful.
Code: Select all
For x=1 To 100 Step value.l
Next x
Best regards
Hroudtwolf
Posted: Fri Mar 17, 2006 9:59 pm
by Trond
While you're waiting, here's a macro for you:
Code: Select all
Macro NextStep(Variable, Value)
Variable + Value-1
Next
EndMacro
For I = 1 To 2048
Debug I
NextStep(I, I)
Posted: Fri Mar 17, 2006 10:39 pm
by Hroudtwolf
Cool idea.
Thx.
Posted: Tue Aug 01, 2006 5:24 am
by Hroudtwolf
This is also a preliminary solution...
Code: Select all
Macro ExtraFor (var,Counter,CountTo,InSteps)
For var=Counter-InSteps To CountTo-InSteps Step 0
var+InSteps
EndMacro
OpenConsole ()
test=10
ExtraFor (x,0,100, test)
PrintN(Str(x))
Next x
Input()
CloseConsole ()
Posted: Wed Aug 02, 2006 7:10 pm
by va!n
this has been wished x times now. let us wait for monday, when you will hold a new version in your hand and possibility support floats for loops too.
