This compiler error will occur if a for instruction does not contain a step value or expression where expected.
For example:
for nTemp = 1 to 10 step // step what ?
// do something
endfor
Note that completely omitting the step keyword and step value (as in the example below) is allowed. In that case, the compiler assumes that the step value is 1 (one).
for nTemp = 1 to 10 // compiler assumes step=1
// do something
endfor
For more details, see looping with the for keyword.
Topic 109609, last updated on 15-Nov-2024