<?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: Help needed to write a for loop in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-needed-to-write-a-for-loop/m-p/510457#M1131172</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is the sample script to load the files from a folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;// list all QV related files on disk&lt;/P&gt;&lt;P class="Code"&gt;SUB DoDir (Root)&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P class="Code"&gt;FOR Each Ext in 'qvw', 'qva', 'qvo', 'qvs'&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P class="Code"&gt;FOR Each File in filelist (Root&amp;amp;' \*.' &amp;amp;Ext)&lt;/P&gt;&lt;P class="Code"&gt;LOAD &lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P class="Code"&gt;'$(File)' as Name, &lt;/P&gt;&lt;P class="Code"&gt;FileSize( '$(File)' ) as Size, &lt;/P&gt;&lt;P class="Code"&gt;FileTime( '$(File)' ) as FileTime&lt;/P&gt;&lt;P class="Code"&gt;autogenerate 1;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P class="Code"&gt;NEXT File&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P class="Code"&gt;NEXT Ext&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P class="Code"&gt;FOR Each Dir in dirlist (Root&amp;amp;' \*' )&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P class="Code"&gt;call DoDir (Dir)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P class="Code"&gt;NEXT Dir&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P class="Code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDSUB&lt;/P&gt;&lt;P class="Code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALL DoDir ('C:')&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am not giving you proper solution, cause i want you to try by your own logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Nov 2013 06:22:24 GMT</pubDate>
    <dc:creator>kaushiknsolanki</dc:creator>
    <dc:date>2013-11-12T06:22:24Z</dc:date>
    <item>
      <title>Help needed to write a for loop</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-to-write-a-for-loop/m-p/510456#M1131171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: georgia,palatino;"&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: georgia,palatino;"&gt;Can anyone please let me know how to write a for loop statement for loading data several xml files?This XML files are located in a particular folder.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: georgia,palatino;"&gt;Instead of loading one by one felt it would be better to load them at one go.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: georgia,palatino;"&gt;Any help or guidelines&amp;nbsp; in this regard is highly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 06:14:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-to-write-a-for-loop/m-p/510456#M1131171</guid>
      <dc:creator />
      <dc:date>2013-11-12T06:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed to write a for loop</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-to-write-a-for-loop/m-p/510457#M1131172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is the sample script to load the files from a folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;// list all QV related files on disk&lt;/P&gt;&lt;P class="Code"&gt;SUB DoDir (Root)&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P class="Code"&gt;FOR Each Ext in 'qvw', 'qva', 'qvo', 'qvs'&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P class="Code"&gt;FOR Each File in filelist (Root&amp;amp;' \*.' &amp;amp;Ext)&lt;/P&gt;&lt;P class="Code"&gt;LOAD &lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P class="Code"&gt;'$(File)' as Name, &lt;/P&gt;&lt;P class="Code"&gt;FileSize( '$(File)' ) as Size, &lt;/P&gt;&lt;P class="Code"&gt;FileTime( '$(File)' ) as FileTime&lt;/P&gt;&lt;P class="Code"&gt;autogenerate 1;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P class="Code"&gt;NEXT File&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P class="Code"&gt;NEXT Ext&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P class="Code"&gt;FOR Each Dir in dirlist (Root&amp;amp;' \*' )&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P class="Code"&gt;call DoDir (Dir)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P class="Code"&gt;NEXT Dir&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P class="Code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDSUB&lt;/P&gt;&lt;P class="Code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALL DoDir ('C:')&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am not giving you proper solution, cause i want you to try by your own logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 06:22:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-to-write-a-for-loop/m-p/510457#M1131172</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-11-12T06:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed to write a for loop</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-to-write-a-for-loop/m-p/510458#M1131173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kaushik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that the example you shared is very good one. I learned new things with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vasim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 06:51:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-to-write-a-for-loop/m-p/510458#M1131173</guid>
      <dc:creator />
      <dc:date>2013-11-12T06:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed to write a for loop</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-to-write-a-for-loop/m-p/510459#M1131174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two examples I have tested with Excel files:&lt;/P&gt;&lt;P&gt;Example 1:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;for &lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;each&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;file&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;FileList&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;('*.xlsx') &lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;Temp_Table1&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;load &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;A&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;ID2&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Number2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;$(file)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;no&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;Feuil1&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;next&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Example 2 even simpler:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Temp_Table1&lt;SPAN style="font-size: 10pt;"&gt;:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;load&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;A&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;ID2&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Number2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;STRONG&gt;*.xlsx&lt;/STRONG&gt;&lt;BR /&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;no&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;Feuil1&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Fabrice&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 08:05:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-to-write-a-for-loop/m-p/510459#M1131174</guid>
      <dc:creator />
      <dc:date>2013-11-12T08:05:06Z</dc:date>
    </item>
  </channel>
</rss>

