Variable as step value.

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Joris
Addict
Addict
Posts: 890
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

Variable as step value.

Post by Joris »

Hi,

An example makes all easily clear (I hope).

Code: Select all

id=10

For a=0 to 100 step id 
or 
For a=alpha to omega step id
Now it can only be like this :

Code: Select all

For a=0 to 100 step 10 
or
For a=alpha to omega step 10
No variable value for the step-size.

Thanks
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Variable as step value.

Post by ts-soft »

http://www.purebasic.fr/english/viewtop ... 48#p139848
This wish is already sometimes here

Use While Wend
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Post Reply