paradox_nz
09-01-2008, 05:38 AM
What does the "Step - 1" portion of the For..Next loop do ?
|
View Full Version : What does the "Step - 1" portion of the For..Next loop do paradox_nz 09-01-2008, 05:38 AM What does the "Step - 1" portion of the For..Next loop do ? chergh 09-01-2008, 05:45 AM If you loop is for i = 10 to 1 step -1 do stuff next i 'i' will start with a value of 10 and decrease by 1 for each iteration of the loop. If it was step -2 the value of i would decrease by 2 for each iteration fo the loop. paradox_nz 09-01-2008, 05:49 AM so in the example below in the pic it will loop 2 time ? chergh 09-01-2008, 05:55 AM No that will loop 3 times, when i equals 7, 6 and 5. |