<?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 Checking return for Select in macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Checking-return-for-Select-in-macro/m-p/142303#M505621</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to provide a message if the Select in the macro fails. With the code below, I'm getting the error &lt;EM&gt;Expected 'Then'&lt;/EM&gt;, with &lt;EM&gt;"District of Columbia" = false then&lt;/EM&gt; highlighted. Anyone have a suggestion? Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;if&lt;/B&gt; ActiveDocument.Fields("STATE_NAME"). &lt;B&gt;Select&lt;/B&gt; "District of Columbia" = &lt;B&gt;false&lt;/B&gt; &lt;B&gt;then&lt;/B&gt; &lt;B&gt;msgbox&lt;/B&gt;("Data does not exist for the selected Reporting State.")&lt;BR /&gt;&lt;BR /&gt; &lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;end&lt;/B&gt; &lt;B&gt;if&lt;/B&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Apr 2009 03:45:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-04-24T03:45:14Z</dc:date>
    <item>
      <title>Checking return for Select in macro</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-return-for-Select-in-macro/m-p/142303#M505621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to provide a message if the Select in the macro fails. With the code below, I'm getting the error &lt;EM&gt;Expected 'Then'&lt;/EM&gt;, with &lt;EM&gt;"District of Columbia" = false then&lt;/EM&gt; highlighted. Anyone have a suggestion? Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;if&lt;/B&gt; ActiveDocument.Fields("STATE_NAME"). &lt;B&gt;Select&lt;/B&gt; "District of Columbia" = &lt;B&gt;false&lt;/B&gt; &lt;B&gt;then&lt;/B&gt; &lt;B&gt;msgbox&lt;/B&gt;("Data does not exist for the selected Reporting State.")&lt;BR /&gt;&lt;BR /&gt; &lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;end&lt;/B&gt; &lt;B&gt;if&lt;/B&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 03:45:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-return-for-Select-in-macro/m-p/142303#M505621</guid>
      <dc:creator />
      <dc:date>2009-04-24T03:45:14Z</dc:date>
    </item>
    <item>
      <title>Checking return for Select in macro</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-return-for-Select-in-macro/m-p/142304#M505622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To get a return value from Select, you must use the function argument form -- that is, enclose the argument in parens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;if ActiveDocument.Fields("STATE_NAME").Select("District of Columbia") = false then msgbox("Data does not exist for the selected Reporting State.")&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Also. if using the single-line syntax If, don't include an End If.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 04:14:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-return-for-Select-in-macro/m-p/142304#M505622</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-04-24T04:14:05Z</dc:date>
    </item>
    <item>
      <title>Checking return for Select in macro</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-return-for-Select-in-macro/m-p/142305#M505623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, that shouldn't have posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 04:15:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-return-for-Select-in-macro/m-p/142305#M505623</guid>
      <dc:creator />
      <dc:date>2009-04-24T04:15:12Z</dc:date>
    </item>
    <item>
      <title>Checking return for Select in macro</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-return-for-Select-in-macro/m-p/142306#M505624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob, that is exactly what I needed. Thanks for your help. Laurie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 19:35:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-return-for-Select-in-macro/m-p/142306#M505624</guid>
      <dc:creator />
      <dc:date>2009-04-24T19:35:04Z</dc:date>
    </item>
  </channel>
</rss>

