<?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 Re: Dynamically add a value to a string array (Script) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamically-add-a-value-to-a-string-array-Script/m-p/96930#M602854</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I managed to find a solution which is the following :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set vYears = '2008', '2009', '2010';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #339966;"&gt;Set vYears = $(vYears), '2011';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for each y in $(vYears)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vTest = $(y);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;next;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;At the end&lt;STRONG&gt; vTest &lt;/STRONG&gt;is equal to 2011. It was as simple as that ^^&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I let it posted in case it can helps someone else!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Aug 2018 12:20:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-08-17T12:20:22Z</dc:date>
    <item>
      <title>Dynamically add a value to a string array (Script)</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-add-a-value-to-a-string-array-Script/m-p/96929#M602853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following simplified code that set a string array and then browse through all the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;set vYears = '2008','2009','2010';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for each y in $(vYears)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; blablabla&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;next;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This is working fine so far, but my question is how could I add the value '2011' to my variable&lt;STRONG&gt; vYears &lt;/STRONG&gt;after its first initialization?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you can help me &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2018 10:13:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-add-a-value-to-a-string-array-Script/m-p/96929#M602853</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-17T10:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically add a value to a string array (Script)</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-add-a-value-to-a-string-array-Script/m-p/96930#M602854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I managed to find a solution which is the following :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set vYears = '2008', '2009', '2010';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #339966;"&gt;Set vYears = $(vYears), '2011';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for each y in $(vYears)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vTest = $(y);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;next;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;At the end&lt;STRONG&gt; vTest &lt;/STRONG&gt;is equal to 2011. It was as simple as that ^^&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I let it posted in case it can helps someone else!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2018 12:20:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-add-a-value-to-a-string-array-Script/m-p/96930#M602854</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-17T12:20:22Z</dc:date>
    </item>
  </channel>
</rss>

