Please enable JavaScript to view this site.

 

Navigation: Messages > Run-Time Messages > Macros

Zero for loop step value

Scroll Prev Up Next More

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
endfor

Without this error message, the execution of the macro would have gone into an infinite loop.

 


Topic 125000, last updated on 18-Apr-2020