Hello
I would like to see for next loops have there direction resolved automaticly. If the START is smaller then the END then increment the value but if the START is less than the END then decement the value.
Having to put "STEP -1" is obvious enough that you shouldn't have to put it there. I still think steps should be added but not indicate the sign. So to explain better, the for next loop should determine the sign of the step automaticly based on the START and END values and the step will always be a positive number indicating the stide of each loop.
What do you guys think?
------------------
Cheers
I would like to see for next loops have there direction resolved automaticly. If the START is smaller then the END then increment the value but if the START is less than the END then decement the value.
Code:
for Index = 1 to 100 next for Index = 100 to 1 next
Having to put "STEP -1" is obvious enough that you shouldn't have to put it there. I still think steps should be added but not indicate the sign. So to explain better, the for next loop should determine the sign of the step automaticly based on the START and END values and the step will always be a positive number indicating the stide of each loop.
Code:
for Index = 1 to 5 step .5 next shows: 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 for Index = 5 to 1 step .5 next shows: 5.0 4.5 4.0 3.5 3.0 2.5 2.0 1.5 1.0
What do you guys think?
------------------
Cheers
Comment