CitectVBA Programming Reference > Understanding CitectVBA Language Basics > Control Structures > For statement

For statement

The For...Next loop conditional statement repeats its block of statements a set number of times as determined by the values used with the To clause.

For <CounterName> = <BeginValue> To <EndValue> [Step <StepValue>]

The counter variable is increased or decreased (by the value stated in the optional Step parameter), with each reiteration of the loop. The counter default is to increment by one if the Step parameter is omitted.

See Also

Control Structures