For / Next

Repeats a group of statements a specified number of times.

Syntax:
    For counter = start  To  end  [Step step size ]
        [statements]
    Next counter

counter Required numeric variable used for the index.  This variable can not be a String, or Array element.
start Required starting value for the index variable.
end Required ending value for the index variable
stepsize Optional step size to increment or decrement the loop counter each time through the loop.
statements Optional statements to execute each time through the loop.

Example:

Dim x as uInteger
For x=0 To 500 Step 2
   Nop		' this nop will be executed 250 times
Next x

Also See: Loop Structures