<?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: Do While syntax bug in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Do-While-syntax-bug/m-p/454083#M169434</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BUMP for QV R+D team to see &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, 26 Oct 2012 11:06:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-26T11:06:48Z</dc:date>
    <item>
      <title>Do While syntax bug</title>
      <link>https://community.qlik.com/t5/QlikView/Do-While-syntax-bug/m-p/454082#M169433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;on a number of occations i have had to change the syntax of using a variable in the condition part of a do while loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on some occations $(varName) is needed, some cases '$(varName)' is needed, some cases varName is needed (and appears in red [feild]?) and in some cases 'varName' is needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just something which could be improved on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your consideration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rhys bradbury&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 13:40:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Do-While-syntax-bug/m-p/454082#M169433</guid>
      <dc:creator />
      <dc:date>2012-10-25T13:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Do While syntax bug</title>
      <link>https://community.qlik.com/t5/QlikView/Do-While-syntax-bug/m-p/454083#M169434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BUMP for QV R+D team to see &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, 26 Oct 2012 11:06:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Do-While-syntax-bug/m-p/454083#M169434</guid>
      <dc:creator />
      <dc:date>2012-10-26T11:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Do While syntax bug</title>
      <link>https://community.qlik.com/t5/QlikView/Do-While-syntax-bug/m-p/454084#M169435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rhys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These all mean different things. Let me attempt to explain them:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;$(varName)&amp;nbsp;&amp;nbsp; - returns the expansion of the variable (performed before the statement is executed). This is the same as typing the &lt;EM&gt;contents&lt;/EM&gt; of the variable. If the contents are an expression, it will be evaluated when the statement is executed. You can use this form when the variable is defined (for example):&lt;UL&gt;&lt;UL&gt;&lt;LI&gt;Set v1 = 2; (2, evaluated, returns 2)&lt;/LI&gt;&lt;LI&gt;Set v2 = Count(Distinct ClientID); injects this expression fragment which is evaluated when the statement or expression is executed.&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;'$(varName)'&amp;nbsp; - also return the expansion, but treats the &lt;EM&gt;contents&lt;/EM&gt; as a string. In other word, when the statement is executed, the variable's content will be placed in the string and not evaluated. For example, if variable v1 contains 2012/10/26, then &lt;UL&gt;&lt;UL&gt;&lt;LI&gt;$(v1) will result in 2012 divided by 10, divided by 26 (7.7385)&lt;/LI&gt;&lt;LI&gt;'$(v1)' will result in the string '2012/10/26'&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;varName - returns the &lt;EM&gt;value&lt;/EM&gt; of the variable (like a conventional variable in other programming languages). You can use this form when the variable is defined as (for example):&lt;UL&gt;&lt;UL&gt;&lt;LI&gt;Set v1 = 2;&lt;/LI&gt;&lt;LI&gt;Set v2 = =Count(Distinct ClientID); (returns the pre-evaluated expression. Note the 2 = symbols)&lt;/LI&gt;&lt;LI&gt;you cannot use this form in a LOAD or SELECT statement - it will be interpreted as a field name.&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;'varName' - will simply return a string containing 'varName', and makes no reference to the variable at all.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps to clear up the situation.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 11:57:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Do-While-syntax-bug/m-p/454084#M169435</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-10-26T11:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Do While syntax bug</title>
      <link>https://community.qlik.com/t5/QlikView/Do-While-syntax-bug/m-p/454085#M169436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thankyou for such a comprehensive reply, this is very useful knowledge and i will be using this as a reference when dealing with syntax from now on.&lt;/P&gt;&lt;P&gt;Thankyou once again,&lt;/P&gt;&lt;P&gt;Rhys Bradbury&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 12:41:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Do-While-syntax-bug/m-p/454085#M169436</guid>
      <dc:creator />
      <dc:date>2012-10-26T12:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Do While syntax bug</title>
      <link>https://community.qlik.com/t5/QlikView/Do-While-syntax-bug/m-p/454086#M169437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rhys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're welcome. Perhaps this sort of thing should be in a tutorial manual &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 14:03:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Do-While-syntax-bug/m-p/454086#M169437</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-10-26T14:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Do While syntax bug</title>
      <link>https://community.qlik.com/t5/QlikView/Do-While-syntax-bug/m-p/454087#M169438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agreed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 12:49:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Do-While-syntax-bug/m-p/454087#M169438</guid>
      <dc:creator />
      <dc:date>2012-10-29T12:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Do While syntax bug</title>
      <link>https://community.qlik.com/t5/QlikView/Do-While-syntax-bug/m-p/454088#M169439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just liked this answer... it's hugely helpful! I wish I could do more than just like it... give it stars, and banners, and awards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This explanation needs to be easier to find!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 19:30:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Do-While-syntax-bug/m-p/454088#M169439</guid>
      <dc:creator />
      <dc:date>2014-02-04T19:30:39Z</dc:date>
    </item>
  </channel>
</rss>

