The Step argument of -.25 reduces the value by 0.25 on each iteration of the loop. In the following example, the number variable starts at 2 and is reduced by 0.25 on each iteration of the loop, ending after the value of number reaches 0. In the following example, the index variable starts with a value of 1 and is incremented with each iteration of the loop, ending after the value of index reaches 5. Next structure when you want to repeat a set of statements a set number of times. For more information about array declarations, see Dim Statement. You can also use this keyword in the Select.Case Statement and in array declarations. The To keyword is used in this statement to specify the range for the counter. Terminates the definition of the For loop. Transfers control to the next loop iteration. One or more statements between For and Next that run the specified number of times. The amount by which counter is incremented each time through the loop. For more information, see Counter Argument later in this topic. Repeats a group of statements a specified number of times.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |