<?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: Is it possible to call an Include file within a Sub Routine in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-call-an-Include-file-within-a-Sub-Routine/m-p/1571141#M442139</link>
    <description>I'm glad you made it work.</description>
    <pubDate>Thu, 18 Apr 2019 15:25:04 GMT</pubDate>
    <dc:creator>albertovarela</dc:creator>
    <dc:date>2019-04-18T15:25:04Z</dc:date>
    <item>
      <title>Is it possible to call an Include file within a Sub Routine</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-call-an-Include-file-within-a-Sub-Routine/m-p/1570636#M442084</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is it possible to call an include file within a Sub Routine like below example, which doesn't work?&lt;/P&gt;&lt;P&gt;SUB plt.Global(_Cust)&lt;/P&gt;&lt;P&gt;LET _Cust = IF(LEN('$(_Cust)') = 0 , 'EXIT SCRIPT;'&lt;SPAN&gt;, '$(Must_Include=c:\qlikview\customers\$(_Cust)\bin\global.qvs)');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;P&gt;CALL plt.Global('MyCustomer');&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 15:57:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-call-an-Include-file-within-a-Sub-Routine/m-p/1570636#M442084</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2019-04-17T15:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to call an Include file within a Sub Routine</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-call-an-Include-file-within-a-Sub-Routine/m-p/1570658#M442090</link>
      <description>&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;Sub plt.Global(_Cust)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If Len($(_Cust)) = 0 THEN&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Exit SCRIPT;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ELSE&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$(Must_Include=c:\qlikview\customers\$(_Cust)\bin\global.qvs);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ENDIF&lt;/P&gt;&lt;P&gt;END Sub&lt;/P&gt;&lt;P&gt;CALL plt.Global('MyCustomer');&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 16:33:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-call-an-Include-file-within-a-Sub-Routine/m-p/1570658#M442090</guid>
      <dc:creator>albertovarela</dc:creator>
      <dc:date>2019-04-17T16:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to call an Include file within a Sub Routine</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-call-an-Include-file-within-a-Sub-Routine/m-p/1570696#M442092</link>
      <description>&lt;P&gt;Thanks, I will try tomorrow morning when I get back to it, thanks&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 19:19:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-call-an-Include-file-within-a-Sub-Routine/m-p/1570696#M442092</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2019-04-17T19:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to call an Include file within a Sub Routine</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-call-an-Include-file-within-a-Sub-Routine/m-p/1570839#M442113</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "Must" throws an error as the Variable is not defined within the Sub Routine, so removing the Must part in the include statement allows the routine to run, the other issue is that if the&amp;nbsp;global.qvs file does not exist, it will also not throw an error, but at least it works somewhat.&lt;/P&gt;&lt;P&gt;So the below works perfect&lt;/P&gt;&lt;P&gt;Sub plt.Global(_Cust)&lt;BR /&gt;&lt;BR /&gt;If Len('$(_Cust)') = 0 THEN&lt;BR /&gt;Exit SCRIPT;&lt;BR /&gt;ELSE&lt;BR /&gt;$(Include=c:\qlikview\customers\$(_Cust)\bin\global.qvs);&lt;BR /&gt;ENDIF&lt;/P&gt;&lt;P&gt;END Sub&lt;/P&gt;&lt;P&gt;CALL plt.Global('MyCustomer');&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 07:58:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-call-an-Include-file-within-a-Sub-Routine/m-p/1570839#M442113</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2019-04-18T07:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to call an Include file within a Sub Routine</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-call-an-Include-file-within-a-Sub-Routine/m-p/1571141#M442139</link>
      <description>I'm glad you made it work.</description>
      <pubDate>Thu, 18 Apr 2019 15:25:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-call-an-Include-file-within-a-Sub-Routine/m-p/1571141#M442139</guid>
      <dc:creator>albertovarela</dc:creator>
      <dc:date>2019-04-18T15:25:04Z</dc:date>
    </item>
  </channel>
</rss>

