Please enable JavaScript to view this site.

 

Navigation: Macros > Macro Language > Compiler Messages > Errors

Counter variable in FOR loop must be an integer

Scroll Prev Up Next More

This compiler error will occur in a for loop, if there is no integer variable in the place where the for loop counter is expected (ie. just after the for keyword)..

for sTemp = 1 to 10 step 1 // sTemp is a string not an integer

In the above example, the variable sTemp is a string variable and is the cause of this message.

 


Topic 109006, last updated on 18-Apr-2020