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