<?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 Looping Strings in Load Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Looping-Strings-in-Load-Script/m-p/283886#M105500</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;in the following example string from values variable is split into tokens with ',' delimiter. In for loop each token (value variable) can be processed separately. Maybe you can modify it to your needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;set values='a,b,c';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;let commaCount=SubStringCount(values,',');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for i=1 to commaCount + 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;let value=subfield(values,',', i);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;next&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jan 2012 08:01:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-01-18T08:01:15Z</dc:date>
    <item>
      <title>Looping Strings in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-Strings-in-Load-Script/m-p/283885#M105499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there any examples of functions that can be used in the load script that loop over a string?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even split the string into an array and loop the array?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to do this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/41760"&gt;http://community.qlik.com/thread/41760&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 22:43:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-Strings-in-Load-Script/m-p/283885#M105499</guid>
      <dc:creator />
      <dc:date>2012-01-17T22:43:51Z</dc:date>
    </item>
    <item>
      <title>Looping Strings in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-Strings-in-Load-Script/m-p/283886#M105500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;in the following example string from values variable is split into tokens with ',' delimiter. In for loop each token (value variable) can be processed separately. Maybe you can modify it to your needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;set values='a,b,c';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;let commaCount=SubStringCount(values,',');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for i=1 to commaCount + 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;let value=subfield(values,',', i);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;next&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 08:01:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-Strings-in-Load-Script/m-p/283886#M105500</guid>
      <dc:creator />
      <dc:date>2012-01-18T08:01:15Z</dc:date>
    </item>
    <item>
      <title>Looping Strings in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-Strings-in-Load-Script/m-p/283887#M105501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have replied in the previous thread&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 08:08:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-Strings-in-Load-Script/m-p/283887#M105501</guid>
      <dc:creator>nstefaniuk</dc:creator>
      <dc:date>2012-01-18T08:08:47Z</dc:date>
    </item>
  </channel>
</rss>

