Declares the end of a For/Next loop. See For for details and examples.
For Local IndexVar := start_value To end_value [ Step constant_value ]
Statements...
Next
For Local IndexVar := start_value Until end_value [ Step constant_value ]
Statements...
Next
For Local IndexVar := Eachin value_set
Statements...
Next
Next declares the end of a For/Next loop.
An alternative to Next is End For, or simply End.