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