<?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: &amp;quot;functions&amp;quot; available in load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/quot-functions-quot-available-in-load-script/m-p/326257#M708213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not a proper "return value", however all variables used in the sub are also available from the outside, so you can assign a variable a value in the sub which are accessible from the calling environment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Dec 2011 14:17:21 GMT</pubDate>
    <dc:creator>gandalfgray</dc:creator>
    <dc:date>2011-12-28T14:17:21Z</dc:date>
    <item>
      <title>"functions" available in load script</title>
      <link>https://community.qlik.com/t5/QlikView/quot-functions-quot-available-in-load-script/m-p/326251#M708207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I can create subs in qlikview, but can you also create a function in the script? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g &lt;/P&gt;&lt;P&gt;function CheckIfFileExists(filename)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bla bla&lt;/P&gt;&lt;P&gt;end function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next to this: it seems qlikview only accepts subs with at least one parameter? (I am now using a dummy value as parameter)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: I don't want to use macro's for this (unless it is the only way. I want to have all coding in the script)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your replies!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2011 11:20:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-functions-quot-available-in-load-script/m-p/326251#M708207</guid>
      <dc:creator />
      <dc:date>2011-12-28T11:20:10Z</dc:date>
    </item>
    <item>
      <title>"functions" available in load script</title>
      <link>https://community.qlik.com/t5/QlikView/quot-functions-quot-available-in-load-script/m-p/326252#M708208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are no "functions" in QV, just "subs"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should be able to have subs without parameters. (I have)&lt;/P&gt;&lt;P&gt;You just define it without a parenthesis after if you do not want parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/gg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2011 11:27:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-functions-quot-available-in-load-script/m-p/326252#M708208</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2011-12-28T11:27:48Z</dc:date>
    </item>
    <item>
      <title>"functions" available in load script</title>
      <link>https://community.qlik.com/t5/QlikView/quot-functions-quot-available-in-load-script/m-p/326253#M708209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; No, I don't believe you can have VB functions in load scripts. You can however do loops - for example, while, for etc. which you might find useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2011 11:58:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-functions-quot-available-in-load-script/m-p/326253#M708209</guid>
      <dc:creator />
      <dc:date>2011-12-28T11:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: "functions" available in load script</title>
      <link>https://community.qlik.com/t5/QlikView/quot-functions-quot-available-in-load-script/m-p/326254#M708210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At least you can have Subs with parameters..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible to use VBScript or JScript functions in the load script but it slows down the load process and the load statement cannot be spread into parallel threads.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2011 12:39:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-functions-quot-available-in-load-script/m-p/326254#M708210</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2011-12-28T12:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: "functions" available in load script</title>
      <link>https://community.qlik.com/t5/QlikView/quot-functions-quot-available-in-load-script/m-p/326255#M708211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don’t need VB/java functions. I would just like to have the “function” à a sub that returns a value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that also not possible? The ref. manual only refers to subs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2011 13:55:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-functions-quot-available-in-load-script/m-p/326255#M708211</guid>
      <dc:creator />
      <dc:date>2011-12-28T13:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: "functions" available in load script</title>
      <link>https://community.qlik.com/t5/QlikView/quot-functions-quot-available-in-load-script/m-p/326256#M708212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A thanks, that is the answer. But it is not possible to provide a return value then?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2011 13:57:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-functions-quot-available-in-load-script/m-p/326256#M708212</guid>
      <dc:creator />
      <dc:date>2011-12-28T13:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: "functions" available in load script</title>
      <link>https://community.qlik.com/t5/QlikView/quot-functions-quot-available-in-load-script/m-p/326257#M708213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not a proper "return value", however all variables used in the sub are also available from the outside, so you can assign a variable a value in the sub which are accessible from the calling environment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2011 14:17:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-functions-quot-available-in-load-script/m-p/326257#M708213</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2011-12-28T14:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: "functions" available in load script</title>
      <link>https://community.qlik.com/t5/QlikView/quot-functions-quot-available-in-load-script/m-p/326258#M708214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use variables as functions for simple tasks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET FileExists = if(len(FileSize($1)) &amp;gt; 0, -1, 0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vExists = $(FileExists('dir\filename.ext');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// from Rob Wunderlich´s Qlikview Components (QVC)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2011 14:40:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-functions-quot-available-in-load-script/m-p/326258#M708214</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2011-12-28T14:40:23Z</dc:date>
    </item>
  </channel>
</rss>

