<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Concatenate String in a Loop in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Concatenate-String-in-a-Loop/m-p/1201597#M875677</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to build a string to use later in my script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to generate the string: '&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;Reportees1,&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;Reportees2&lt;SPAN style="font-size: 13.3333px;"&gt;,&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;Reportees3&lt;SPAN style="font-size: 13.3333px;"&gt;,&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;Reportees4&lt;SPAN style="font-size: 13.3333px;"&gt;,&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;Reportees5&lt;/EM&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following code is not working. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let buildString = 'Reportees1';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For level = 2 to 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Let buildString = $(buildString) &amp;amp; ',Reportees' &amp;amp; $(level);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next level&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Trace $(buildString);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Concatenate String in a Loop</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-String-in-a-Loop/m-p/1201597#M875677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to build a string to use later in my script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to generate the string: '&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;Reportees1,&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;Reportees2&lt;SPAN style="font-size: 13.3333px;"&gt;,&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;Reportees3&lt;SPAN style="font-size: 13.3333px;"&gt;,&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;Reportees4&lt;SPAN style="font-size: 13.3333px;"&gt;,&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;Reportees5&lt;/EM&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following code is not working. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let buildString = 'Reportees1';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For level = 2 to 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Let buildString = $(buildString) &amp;amp; ',Reportees' &amp;amp; $(level);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next level&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Trace $(buildString);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-String-in-a-Loop/m-p/1201597#M875677</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate String in a Loop</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-String-in-a-Loop/m-p/1201598#M875678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved my own problem!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to enclose the variable in quotes so that QV would treat it as a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp; Let buildString = '$(buildString)' &amp;amp; ',Reportees' &amp;amp; $(level);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 15:37:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-String-in-a-Loop/m-p/1201598#M875678</guid>
      <dc:creator />
      <dc:date>2016-10-31T15:37:21Z</dc:date>
    </item>
  </channel>
</rss>

