For / Next Format

Post your requests and ideas on the future development of mikroBasic for dsPIC30/33 and PIC24.
Post Reply
Author
Message
Francis
Posts: 135
Joined: 08 Feb 2007 22:26

For / Next Format

#1 Post by Francis » 15 Mar 2007 20:55

Just for convenience would it be possible to change the For/Next from

For <variableA> = <variableB> TO <variableC> Step <Constant>

to

For <variableA> = <variableB> TO <variableC> Step <VariableD>

i.e. change the Step <value> from a Constant to a Variable.

I realise it can be duplicated using Do Loop Until etc. It was just convenience when converting Basic code from other Compilers.

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: For / Next Format

#2 Post by zristic » 16 Mar 2007 09:27

It complicates things for us, but for that purpose you can use the while loop, with the same effects and even less program size.

Francis
Posts: 135
Joined: 08 Feb 2007 22:26

#3 Post by Francis » 16 Mar 2007 09:59

OK.

Post Reply

Return to “mikroBasic for dsPIC30/33 and PIC24 Wish List”