Zero for loop step value

Navigation:  Messages > Run-Time Messages > Macro Tokens >

Zero for loop step value

Previous pageReturn to chapter overviewNext page

The value of the step value used in a for loop of a macro is zero.


An example of code which would cause this error is :


nStep = 0

for nCtr = 1 to 10 step nStep

 // do something



If Q++ had not caught this error, your PC would have gotten itself into an infinite loop.

Topic 125000 updated on 01-Nov-2016.
Topic URL: