Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

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
MVP & Luminary
MVP & Luminary

Re: For Next script line error

Please post a small Qlikview document that demonstrates the problem.


talk is cheap, supply exceeds demand

Re: For Next script line error

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.