Next (statement)
The Next (N) statement works in conjunction with the For statement to form a loop. Next calculates the next numeric variable and runs a loop test to determine whether or not execution of the loop should continue.
Comments and Examples
If the value of the numeric variable remains within the specified boundaries (as indicated in the For statement), the loop is re-executed. If it is not within the specified boundaries, control passes to the first executable statement after Next.
Syntax
Parameter
"Numeric variable" must be the same numeric variable that is listed in the corresponding For statement.