<?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: For - Next parameter using variables? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/For-Next-parameter-using-variables/m-p/83069#M608452</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only thing, I can think about your Peek() may stores String which 1 to Some String which is false? Can you screenshot the image of Trace as Stefan said? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 Feb 2018 14:11:42 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2018-02-10T14:11:42Z</dc:date>
    <item>
      <title>For - Next parameter using variables?</title>
      <link>https://community.qlik.com/t5/QlikView/For-Next-parameter-using-variables/m-p/83064#M608447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I use a variable, expression or a Peek for the constraints in a For Next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. For 1 to vCounterMax or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 1 to peek(Column, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to define a loop.&amp;nbsp; It does not seem to resolve either case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Feb 2018 02:50:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Next-parameter-using-variables/m-p/83064#M608447</guid>
      <dc:creator>jackhertel</dc:creator>
      <dc:date>2018-02-10T02:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: For - Next parameter using variables?</title>
      <link>https://community.qlik.com/t5/QlikView/For-Next-parameter-using-variables/m-p/83065#M608448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suppose I should write these with the correct format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;For i=1 to vCounterMax&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;or &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;For i=1 to peek(Column, 0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Feb 2018 03:07:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Next-parameter-using-variables/m-p/83065#M608448</guid>
      <dc:creator>jackhertel</dc:creator>
      <dc:date>2018-02-10T03:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: For - Next parameter using variables?</title>
      <link>https://community.qlik.com/t5/QlikView/For-Next-parameter-using-variables/m-p/83066#M608449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For i=1 to Peek('Column',0, 'Table')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Feb 2018 05:45:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Next-parameter-using-variables/m-p/83066#M608449</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-02-10T05:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: For - Next parameter using variables?</title>
      <link>https://community.qlik.com/t5/QlikView/For-Next-parameter-using-variables/m-p/83067#M608450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Aniil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But no luck.&amp;nbsp; It does not seem to try to resole the Peek or a Variable at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get an error message window that has:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax error&lt;/P&gt;&lt;P&gt;For i&amp;nbsp; = 1 to &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The part following the 'to' does not seem to get resolved to a number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Feb 2018 13:06:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Next-parameter-using-variables/m-p/83067#M608450</guid>
      <dc:creator>jackhertel</dc:creator>
      <dc:date>2018-02-10T13:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: For - Next parameter using variables?</title>
      <link>https://community.qlik.com/t5/QlikView/For-Next-parameter-using-variables/m-p/83068#M608451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Both worked for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vCounterMax = Peek('Field',0,'Table');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For i = 1 to vCounterMax&lt;/P&gt;&lt;P&gt; TRACE $(i);&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;For i = 1 to &lt;SPAN style="font-size: 13.3333px;"&gt;Peek('Field',0,'Table')&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt; TRACE $(i);&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Next&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;If you are using the variable approach, what does a TRACE of your variable show?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Feb 2018 13:58:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Next-parameter-using-variables/m-p/83068#M608451</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-02-10T13:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: For - Next parameter using variables?</title>
      <link>https://community.qlik.com/t5/QlikView/For-Next-parameter-using-variables/m-p/83069#M608452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only thing, I can think about your Peek() may stores String which 1 to Some String which is false? Can you screenshot the image of Trace as Stefan said? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Feb 2018 14:11:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Next-parameter-using-variables/m-p/83069#M608452</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-02-10T14:11:42Z</dc:date>
    </item>
  </channel>
</rss>

