Qlik Community

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Customer & Partners, DEC. 9, 11 AM ET: Qlik Product & Strategy Roadmap Session: Data Analytics REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Script Line Error For Next

Hi,

I am running a For Next Loop and I have a script line error Next i

For i = 0 to 2

next i

Can somebody tell me why.

I have check my script there's not any Next i in the code that should be in my script apart from the 1 am expecting.

7 Replies
MK_QSL
MVP
MVP

can you load full script pls

maxgro
MVP
MVP

the problen isn't in the for loop but in other section of the script

Not applicable
Author

Hi,

please upload your script, or QVW

With Regards

Harshita Gaur

marcus_sommer
MVP & Luminary
MVP & Luminary

Try it without next i:

For i = 0 to 2

     trace $(i);

next

- Marcus

Not applicable
Author

Try this:

FOR i=0 to 2 Step 1


NEXT

Not applicable
Author

You will also get this "Script line error next" message if you commented out the "For" syntax without commenting out the respective "Next" syntax that goes with it.  Obvious yes...unless you forgot that you started commenting out code.

Srinivas
Creator
Creator

Hi Team,

Please find the error screenshot.. 

Srinivas_0-1602435884072.png