Counter variable in FOR loop must be an integer

Navigation:  Messages > Macro Compiler Messages > Errors >

Counter variable in FOR loop must be an integer

Previous pageReturn to chapter overviewNext page

This compiler error will occur in a for loop, if Q++ does not find an integer variable in the place where it expects to find the for loop counter.

 

  for sTemp = 1 to 10 step 1 // bad !

 

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


Topic 109006 updated on 11-Apr-2002.
Topic URL: http://www.qppstudio.net/webhelp/index.html?countervariableinforloopmustbe.htm