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.
For disambiguation purposes, see also Next (internal function).
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.
00390 For I=1 to UDIM(box$) 00400 if box$(I)(1:1)="^" then ordered(I)=1 else ordered(I)=0 00410 next I
NEXT <numeric variable>
"Numeric variable" must be the same numeric variable that is listed in the corresponding For statement.