<?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: Check if Sub is existing in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Check-if-Sub-is-existing/m-p/1084647#M361201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or search / read through the code prior the call...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure If I understand your request, what would be your use case?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Apr 2016 10:20:43 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-04-22T10:20:43Z</dc:date>
    <item>
      <title>Check if Sub is existing</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-Sub-is-existing/m-p/1084645#M361199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to know in the script if a sub is existing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2016 10:13:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-Sub-is-existing/m-p/1084645#M361199</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2016-04-22T10:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Check if Sub is existing</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-Sub-is-existing/m-p/1084646#M361200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.... except by "trying to use it, with errorlevel=0, and dealing with the error...." &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2016 10:14:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-Sub-is-existing/m-p/1084646#M361200</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2016-04-22T10:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Check if Sub is existing</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-Sub-is-existing/m-p/1084647#M361201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or search / read through the code prior the call...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure If I understand your request, what would be your use case?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2016 10:20:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-Sub-is-existing/m-p/1084647#M361201</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-22T10:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Check if Sub is existing</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-Sub-is-existing/m-p/1084648#M361202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using a big library of "include files" where I keep many subs that are considered to be useful for many different scripts, and the scripts are themselves also includefiles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance, I have a sub called "sub_send_mail()". This sub is then used by some other subs that are then used in many different applications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I would like to make sure Before including a sub in my script, that the sub is not already included by some other include file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this: "If not exists Sub('sub_send_mail') then &lt;SPAN style="color: #808080; font-size: 10pt;"&gt;&lt;EM&gt;&lt;STRONG&gt;(Include=..\scripts\sub_send_mail.qvs)"&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2016 10:27:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-Sub-is-existing/m-p/1084648#M361202</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2016-04-22T10:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Check if Sub is existing</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-Sub-is-existing/m-p/1084649#M361203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌Fir reference, the answer is no. No way to check that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Mar 2017 19:47:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-Sub-is-existing/m-p/1084649#M361203</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2017-03-05T19:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Check if Sub is existing</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-Sub-is-existing/m-p/1084650#M361204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for a late answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can't check if a Sub exists in the previous script code, why not revert back to the old include guards?&lt;/P&gt;&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/Include_guard" title="https://en.wikipedia.org/wiki/Include_guard"&gt;include guard - Wikipedia&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, define a unique variable in your include files and use a conditional to only include the file if the variable is not set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Mar 2017 20:42:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-Sub-is-existing/m-p/1084650#M361204</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-03-05T20:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Check if Sub is existing</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-Sub-is-existing/m-p/1084651#M361205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌Its just a great feeling when the solution is there and you just don't see it unless you get somone to make you look to the right direction!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Stefan!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea to make variable named as the sub will be a great way to solve it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Mar 2017 21:22:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-Sub-is-existing/m-p/1084651#M361205</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2017-03-05T21:22:49Z</dc:date>
    </item>
  </channel>
</rss>

