<?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: Sub from Include not found when Call is outside IF-statement in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sub-from-Include-not-found-when-Call-is-outside-IF-statement/m-p/109220#M7480</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have several qvs files in a folder and I want to Include them all, except for 1 (@Calls.qvs).&lt;/P&gt;&lt;P&gt;I want to do this dynamically, because I've got a lot of folders with different qvs files.&lt;/P&gt;&lt;P&gt;These qvs files containing SUB routines. After Including all those files, I want to Call those routines on another place.&lt;/P&gt;&lt;P&gt;Underneath my code to Include those files. This is working fine, but the as discussed before, I can't Call a subroutine outside the IF statement and/or FOR loop.&lt;/P&gt;&lt;P&gt;For the IF-statement we've got a workaround. Now I need the work around for the FOR loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Load each qvs file in the app folder, excluding @Calls.qvs&lt;/P&gt;&lt;P&gt;FOR EACH vIncludeFile in FILELIST('$(vFolder)*.qvs');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF '$(vIncludeFile)' = REPLACE('$(vFolder)@Calls.qvs','\','/') THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Do Nothing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ELSE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(Must_Include=$(vIncludeFile));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; END IF&lt;/P&gt;&lt;P&gt;NEXT vIncludeFile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL SubRoutineFromQVS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //which is failing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Sep 2018 07:41:00 GMT</pubDate>
    <dc:creator>jepeerik</dc:creator>
    <dc:date>2018-09-10T07:41:00Z</dc:date>
    <item>
      <title>Sub from Include not found when Call is outside IF-statement</title>
      <link>https://community.qlik.com/t5/App-Development/Sub-from-Include-not-found-when-Call-is-outside-IF-statement/m-p/109214#M7474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to Include a file containing a Sub. I include this within an IF-statement.&lt;/P&gt;&lt;P&gt;When the Call-statement is executed within the IF-statement, the Sub if found and executed. When the Call is outside the IF-statement, the Call is giving an error saying that the Sub is not found.&lt;/P&gt;&lt;P&gt;I've tested it with an Include and Must_Include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script for loading the Include file and the IF and Call statements:&lt;/P&gt;&lt;P&gt;IF 1=0 THEN&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TRACE 'Test IF';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TRACE 'Test ELSE';&lt;/P&gt;&lt;P style="text-indent: 35.4pt;"&gt;$(Include=lib://FolderQlik\TestInclude.qvs);&lt;/P&gt;&lt;P style="text-indent: 35.4pt;"&gt;Call TestInclude;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //This Call is working fine&lt;/P&gt;&lt;P&gt;END IF&lt;/P&gt;&lt;P&gt;TRACE 'Test outside IF';&lt;/P&gt;&lt;P&gt;Call TestInclude;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //This Call is generating an error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Contents of the Include file:&lt;/P&gt;&lt;P&gt;TRACE 'preSUB TestInclude';&lt;/P&gt;&lt;P&gt;SUB TestInclude&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TRACE 'SUB TestInclude';&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Sep 2018 11:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sub-from-Include-not-found-when-Call-is-outside-IF-statement/m-p/109214#M7474</guid>
      <dc:creator>jepeerik</dc:creator>
      <dc:date>2018-09-09T11:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sub from Include not found when Call is outside IF-statement</title>
      <link>https://community.qlik.com/t5/App-Development/Sub-from-Include-not-found-when-Call-is-outside-IF-statement/m-p/109215#M7475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1196052"&gt;SUB inside IF ... THEN statement&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 05:28:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sub-from-Include-not-found-when-Call-is-outside-IF-statement/m-p/109215#M7475</guid>
      <dc:creator>andrey_krylov</dc:creator>
      <dc:date>2018-09-10T05:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sub from Include not found when Call is outside IF-statement</title>
      <link>https://community.qlik.com/t5/App-Development/Sub-from-Include-not-found-when-Call-is-outside-IF-statement/m-p/109216#M7476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Andrey for your response.&lt;/P&gt;&lt;P&gt;Now I know why it isn't working. I also noticed this behaviour with the FOR-loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, the reason why I actually want to do this is because I dynamically want to Include all QVS-files (except 1, so therefore the IF-statement) within a folder and therefore I need a FOR-loop. So that will not work this way.&lt;/P&gt;&lt;P&gt;Maybe you have another solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;Jörgen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 06:16:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sub-from-Include-not-found-when-Call-is-outside-IF-statement/m-p/109216#M7476</guid>
      <dc:creator>jepeerik</dc:creator>
      <dc:date>2018-09-10T06:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sub from Include not found when Call is outside IF-statement</title>
      <link>https://community.qlik.com/t5/App-Development/Sub-from-Include-not-found-when-Call-is-outside-IF-statement/m-p/109217#M7477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Hi, Jörgen. Maybe, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;for &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;dynamical &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Include - &lt;/SPAN&gt;&lt;/SPAN&gt;something like this&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;IF 1=0 THEN&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px;"&gt;TRACE 'Test IF';&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;vScript = '';&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ELSE&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TRACE 'Test ELSE';&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-indent: 35.4pt;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;vScript = &lt;/SPAN&gt;'Include=lib://FolderQlik\TestInclude.qvs';&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-indent: 35.4pt;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;$($(vScript));&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-indent: 35.4pt;"&gt;Call TestInclude;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //This Call is working fine&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;END IF&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TRACE 'Test outside IF';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;$($(vScript));&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Call TestInclude;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 06:53:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sub-from-Include-not-found-when-Call-is-outside-IF-statement/m-p/109217#M7477</guid>
      <dc:creator>andrey_krylov</dc:creator>
      <dc:date>2018-09-10T06:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sub from Include not found when Call is outside IF-statement</title>
      <link>https://community.qlik.com/t5/App-Development/Sub-from-Include-not-found-when-Call-is-outside-IF-statement/m-p/109218#M7478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. That's indeed the trick to get it outside the IF-statement.&lt;/P&gt;&lt;P&gt;But I'm stuck with the FOR-loop. I need a loop to dynamically load all qvs files from a folder, and as far as I know that's something I can't fix without the loop or outside the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;Jörgen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 07:01:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sub-from-Include-not-found-when-Call-is-outside-IF-statement/m-p/109218#M7478</guid>
      <dc:creator>jepeerik</dc:creator>
      <dc:date>2018-09-10T07:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sub from Include not found when Call is outside IF-statement</title>
      <link>https://community.qlik.com/t5/App-Development/Sub-from-Include-not-found-when-Call-is-outside-IF-statement/m-p/109219#M7479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't get exactly your &lt;SPAN style="font-size: 13.3333330154419px;"&gt;reqourment. Can you share more detailed code, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Jörgen&lt;/SPAN&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 07:27:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sub-from-Include-not-found-when-Call-is-outside-IF-statement/m-p/109219#M7479</guid>
      <dc:creator>andrey_krylov</dc:creator>
      <dc:date>2018-09-10T07:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sub from Include not found when Call is outside IF-statement</title>
      <link>https://community.qlik.com/t5/App-Development/Sub-from-Include-not-found-when-Call-is-outside-IF-statement/m-p/109220#M7480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have several qvs files in a folder and I want to Include them all, except for 1 (@Calls.qvs).&lt;/P&gt;&lt;P&gt;I want to do this dynamically, because I've got a lot of folders with different qvs files.&lt;/P&gt;&lt;P&gt;These qvs files containing SUB routines. After Including all those files, I want to Call those routines on another place.&lt;/P&gt;&lt;P&gt;Underneath my code to Include those files. This is working fine, but the as discussed before, I can't Call a subroutine outside the IF statement and/or FOR loop.&lt;/P&gt;&lt;P&gt;For the IF-statement we've got a workaround. Now I need the work around for the FOR loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Load each qvs file in the app folder, excluding @Calls.qvs&lt;/P&gt;&lt;P&gt;FOR EACH vIncludeFile in FILELIST('$(vFolder)*.qvs');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF '$(vIncludeFile)' = REPLACE('$(vFolder)@Calls.qvs','\','/') THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Do Nothing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ELSE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(Must_Include=$(vIncludeFile));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; END IF&lt;/P&gt;&lt;P&gt;NEXT vIncludeFile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL SubRoutineFromQVS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //which is failing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 07:41:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sub-from-Include-not-found-when-Call-is-outside-IF-statement/m-p/109220#M7480</guid>
      <dc:creator>jepeerik</dc:creator>
      <dc:date>2018-09-10T07:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sub from Include not found when Call is outside IF-statement</title>
      <link>https://community.qlik.com/t5/App-Development/Sub-from-Include-not-found-when-Call-is-outside-IF-statement/m-p/109221#M7481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, Maybe this&lt;/P&gt;&lt;P&gt;vString = '';&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FOR EACH vIncludeFile in FILELIST('$(vFolder)*.qvs');&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF '$(vIncludeFile)' = REPLACE('$(vFolder)@Calls.qvs','\','/') THEN&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Do Nothing&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ELSE&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(Must_Include=$(vIncludeFile));&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vString = vString &amp;amp; '$'&amp;amp;'(Must_Include=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(vIncludeFile)&lt;/SPAN&gt;);';&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; END IF&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;NEXT vIncludeFile&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;vString);&lt;/SPAN&gt; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CALL SubRoutineFromQVS&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 09:49:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sub-from-Include-not-found-when-Call-is-outside-IF-statement/m-p/109221#M7481</guid>
      <dc:creator>andrey_krylov</dc:creator>
      <dc:date>2018-09-10T09:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sub from Include not found when Call is outside IF-statement</title>
      <link>https://community.qlik.com/t5/App-Development/Sub-from-Include-not-found-when-Call-is-outside-IF-statement/m-p/109222#M7482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I understand your work-around. And that should work indeed.&lt;/P&gt;&lt;P&gt;I'll test this.&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;Jörgen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 09:55:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sub-from-Include-not-found-when-Call-is-outside-IF-statement/m-p/109222#M7482</guid>
      <dc:creator>jepeerik</dc:creator>
      <dc:date>2018-09-10T09:55:16Z</dc:date>
    </item>
  </channel>
</rss>

