Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

For Next script line error

I have a subroutine that takes in a date range(Month, vMinDay, vMaxDay)

     For i = vMinDay to vMaxDay

          //load a bunch of stuff

     next

end sub

call sub(08, 09, 09)

Everything loads correctly, but every-time the script hits the "next" statement I get a script line error. Thanks in advance for the help!!

2 Replies
Gysbert_Wassenaar

Please post a small Qlikview document that demonstrates the problem.


talk is cheap, supply exceeds demand
Peter_Cammaert
Partner - Champion III
Partner - Champion III

Most probably due to a suprefluous second NEXT or a statement nesting error (for example an IF THEN that starts in the FOR NEXT block but is either unterminated or terminated outside the FOR NEXT)

If you cant upload an example document, please post the exact script code from a few lines before the FOR keyword up to a few lines after the NEXT keyword. The sample you posted isn't much to work on, sorry.