Specifications
App - 4
Appendix 1.2 Outline Command
For...Next statement
Functions
The flow control statement which repeats a series of statements for the designated
number of times
Format
For counter = start To end[Step step]
[statements]
[Exit For]
[statements]
Next[counter]
The following shows the designated items of the For...Next statement.
Designated items Description
counter Designates the numeric variables to be used for a loop counter.
A factor of user definition type cannot be designated.
start Designates the initial value of an argument counter.
end Designates the final value of an argument counter.
step Designates the value to be added to an argument counter ever
y
time the loop is repeated.
If the argument step is skipped, "1" is added to an argument
counter every time the loop is repeated.
statements A series of statements which is executed inside the loop and
described between For and Next
Statements described here are executed for the number o
f
times designated by For...Next.