<?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 For Loop in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/For-Loop/m-p/185520#M49973</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;In this script I would to show the msgBox referred to the content of variavle. It soesn't work. Please coul to correct What I wrote.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; sub var&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; set a= ActiveDocument.Variables("Variable1")&lt;BR /&gt; a.SetContent "4" , true&lt;BR /&gt;&lt;BR /&gt; FOR I=1 to Variable1&lt;BR /&gt;&lt;BR /&gt;.msgBox("Hello")&lt;BR /&gt;&lt;BR /&gt; Next&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regrds&lt;/P&gt;&lt;P&gt;Slash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Sep 2009 17:28:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-09-14T17:28:54Z</dc:date>
    <item>
      <title>For Loop</title>
      <link>https://community.qlik.com/t5/QlikView/For-Loop/m-p/185520#M49973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;In this script I would to show the msgBox referred to the content of variavle. It soesn't work. Please coul to correct What I wrote.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; sub var&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; set a= ActiveDocument.Variables("Variable1")&lt;BR /&gt; a.SetContent "4" , true&lt;BR /&gt;&lt;BR /&gt; FOR I=1 to Variable1&lt;BR /&gt;&lt;BR /&gt;.msgBox("Hello")&lt;BR /&gt;&lt;BR /&gt; Next&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regrds&lt;/P&gt;&lt;P&gt;Slash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 17:28:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Loop/m-p/185520#M49973</guid>
      <dc:creator />
      <dc:date>2009-09-14T17:28:54Z</dc:date>
    </item>
    <item>
      <title>AW:For Loop</title>
      <link>https://community.qlik.com/t5/QlikView/For-Loop/m-p/185521#M49974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I don't know what you intend with it, but the correct code should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;sub var&lt;BR /&gt; set a= ActiveDocument.Variables("Variable1")&lt;BR /&gt; ' setting the content&lt;BR /&gt; a.SetContent "4",true&lt;BR /&gt;&lt;BR /&gt; ' reading the content&lt;BR /&gt; value = a.GetContent.String&lt;BR /&gt; for i = 1 to value&lt;BR /&gt; msgbox "Hello"&lt;BR /&gt; next&lt;BR /&gt;end sub&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Don't mix up variables from the qvw-application and variables from the module. You can't mix them!&lt;/P&gt;&lt;P&gt;Rgds,&lt;BR /&gt;Joachim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 17:45:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Loop/m-p/185521#M49974</guid>
      <dc:creator>biester</dc:creator>
      <dc:date>2009-09-14T17:45:36Z</dc:date>
    </item>
    <item>
      <title>AW:For Loop</title>
      <link>https://community.qlik.com/t5/QlikView/For-Loop/m-p/185522#M49975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thnks. Yes is what I'm lookung for.&lt;/P&gt;&lt;P&gt;Please , if I want to add the counter how I do.&lt;/P&gt;&lt;P&gt;Example (do not work)&lt;/P&gt;&lt;P&gt;sub var&lt;BR /&gt; set a= ActiveDocument.Variables("Variable1")&lt;BR /&gt; ' setting the content&lt;BR /&gt; a.SetContent "4",true&lt;BR /&gt;&lt;BR /&gt; ' reading the content&lt;BR /&gt; value = a.GetContent.String&lt;BR /&gt; for i = 1 to value&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;msgbox&lt;/STRONG&gt; "Hello"&lt;STRONG&gt;+ i&lt;/STRONG&gt;&lt;BR /&gt; next&lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;the value of o is avaiable?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Slash&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 19:11:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Loop/m-p/185522#M49975</guid>
      <dc:creator />
      <dc:date>2009-09-14T19:11:30Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:For Loop</title>
      <link>https://community.qlik.com/t5/QlikView/For-Loop/m-p/185523#M49976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The value of "o"?? What "o"?&lt;/P&gt;&lt;P&gt;Nevertheless, it must be&lt;/P&gt;&lt;P&gt;msgbox "Hello" &amp;amp; i&lt;/P&gt;&lt;P&gt;It's a string concatenation, not an addition.&lt;/P&gt;&lt;P&gt;Rgds,&lt;BR /&gt;Joachim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 19:16:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Loop/m-p/185523#M49976</guid>
      <dc:creator>biester</dc:creator>
      <dc:date>2009-09-14T19:16:45Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:For Loop</title>
      <link>https://community.qlik.com/t5/QlikView/For-Loop/m-p/185524#M49977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Zero?&lt;/P&gt;&lt;P&gt;The i value is 1 the first ... and 4 the last&lt;/P&gt;&lt;P&gt;Now works. Pleas try the script to understand What I would to do ..&lt;/P&gt;&lt;P&gt;The documentation is many time enough or bad explained.&lt;/P&gt;&lt;P&gt;The part of APi, VBscript is very enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Slash&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 19:22:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Loop/m-p/185524#M49977</guid>
      <dc:creator />
      <dc:date>2009-09-14T19:22:32Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Re: AW:For Loop</title>
      <link>https://community.qlik.com/t5/QlikView/For-Loop/m-p/185525#M49978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, of course, if value = 4 and you start&lt;/P&gt;&lt;P&gt;for i = 1 to value&lt;/P&gt;&lt;P&gt;then i starts with 1 and ends with 4.&lt;/P&gt;&lt;P&gt;Everything clear now?&lt;/P&gt;&lt;P&gt;Rgds,&lt;BR /&gt;Joachim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 19:28:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Loop/m-p/185525#M49978</guid>
      <dc:creator>biester</dc:creator>
      <dc:date>2009-09-14T19:28:54Z</dc:date>
    </item>
  </channel>
</rss>

