Skip to main content
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

Where is the ENDIF for this if

Capture.PNG

View solution in original post

2 Replies
sunny_talwar

Where is the ENDIF for this if

Capture.PNG

Anonymous
Not applicable
Author

yes you are right.