This compiler error will occur if you use anything else than an expression which evaluates to an integer, as the step value of a for loop.
For example:
for nCtr = 1 to 9 step bOne // bOne is not integer
for nCtr = 1 to 9 step '1' // '1' is not integer
See also: start point of for loop should be an integer expression.
Topic 108130, last updated on 18-Apr-2020