Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

For Loop Error

Hi guys,

I have this code

for i=1 to $(VNo.ofFields)

        let VFieldName=FieldName($(i),'$(vTableName)');

        if VFieldName='Key'  then

           let VFieldvalue=FieldValue('$(VFieldName)',1);

           for j=1 to VNo.ofFieldValues1

              if VFieldvalue=FieldValue('$(VFieldName1)',j);

                 list$(j)=list$(j)&if(len(list$(j))>0,',')&chr(39)&vTableName&chr(39);

           next j                                                      //Here i got a semantic error

         endif

      Next i

can you help me please ?

1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Where is the ENDIF for this if

Capture.PNG

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

Where is the ENDIF for this if

Capture.PNG

Anonymous
Not applicable
Author

yes you are right.