Expecting value after STEP

Navigation:  Messages > Macro Compiler Messages > Errors >

Expecting value after STEP

Previous pageReturn to chapter overviewNext page

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

      // do something  

  endfor

 

Note that completely omitting the step keyword and step value (as in the example below) if 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 updated on 16-Apr-2002.
Topic URL: http://www.qppstudio.net/webhelp/index.html?missingstepvalueinforstatement.htm