<?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 VB Functions in Load Script doesn´t work in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/VB-Functions-in-Load-Script-doesn-t-work/m-p/274363#M102618</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you very much, but it seems that's not my day&lt;/P&gt;&lt;P&gt;I use QlikView 9 and there is no function FileList()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Dec 2011 09:43:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-12-05T09:43:57Z</dc:date>
    <item>
      <title>VB Functions in Load Script doesn´t work</title>
      <link>https://community.qlik.com/t5/QlikView/VB-Functions-in-Load-Script-doesn-t-work/m-p/274358#M102613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I copied the VB-Script and the load script from the manuell Section II Chapter 3 "call Macro function in script" in a new Qlikview File. &lt;/P&gt;&lt;P&gt;(german manuel Page 303)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it doesn´t work. &lt;/P&gt;&lt;P&gt;The called VB-Functions returned NULL and the Inputbox won´t be shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With a "Test Sub" like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub Test&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgbox VBin("Test")&lt;/P&gt;&lt;P&gt;end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and a Button assigned on this sub all works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use QlikView v9 SR4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&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;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Modul:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;rem *************************************************&lt;/P&gt;&lt;P&gt;rem *********** VBSCRIPT AUS DEM MODUL *************&lt;/P&gt;&lt;P&gt;rem *************************************************&lt;/P&gt;&lt;P&gt;rem ************** Global Variablen *****************&lt;/P&gt;&lt;P&gt;dim flag&lt;/P&gt;&lt;P&gt;rem ************ Neue Skript-Funktionen *************&lt;/P&gt;&lt;P&gt;rem ************** Inputbox öffnen *****************&lt;/P&gt;&lt;P&gt;function VBin(prompt)&lt;/P&gt;&lt;P&gt;VBin = inputbox(prompt)&lt;/P&gt;&lt;P&gt;end function&lt;/P&gt;&lt;P&gt;rem ******** Globale Variable zurücksetzen ***********&lt;/P&gt;&lt;P&gt;function VBclearFlag()&lt;/P&gt;&lt;P&gt;flag = 0&lt;/P&gt;&lt;P&gt;end function&lt;/P&gt;&lt;P&gt;rem ************ Vergleich der Referenzen ************&lt;/P&gt;&lt;P&gt;function VBRelPos(Ref, Current)&lt;/P&gt;&lt;P&gt;if Ref = Current then&lt;/P&gt;&lt;P&gt;VBRelPos = "Reference"&lt;/P&gt;&lt;P&gt;flag = 1&lt;/P&gt;&lt;P&gt;elseif flag = 0 then&lt;/P&gt;&lt;P&gt;VBRelPos = "Before "&amp;amp;Ref&amp;amp;" in table"&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;VBRelPos="After "&amp;amp;Ref&amp;amp;" in table"&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;end function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Script&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;// *************************************************&lt;/P&gt;&lt;P&gt;// ***************** LADE-SKRIPT *******************&lt;/P&gt;&lt;P&gt;// *************************************************&lt;/P&gt;&lt;P&gt;let MaxEinw=VBin('Max. Einwohnerzahl in Millionen:');&lt;/P&gt;&lt;P&gt;// Abfrage Limit&lt;/P&gt;&lt;P&gt;let RefLand=VBin('Referenz-Land:');&lt;/P&gt;&lt;P&gt;// Abfrage Referenz&lt;/P&gt;&lt;P&gt;let Dummy=VBclearFlag();&lt;/P&gt;&lt;P&gt;// Löscht Global Flag&lt;/P&gt;&lt;P&gt;Load Land,recno(),&lt;/P&gt;&lt;P&gt;Hauptstadt,&lt;/P&gt;&lt;P&gt;"Fläche (qkm)",&lt;/P&gt;&lt;P&gt;"Einwohner (Mio)",&lt;/P&gt;&lt;P&gt;VBRelPos('$(RefLand)',Land) as RelativePos&lt;/P&gt;&lt;P&gt;from länder1.csv&lt;/P&gt;&lt;P&gt;(ansi, txt, delimiter is ',', embedded labels)&lt;/P&gt;&lt;P&gt;where "Einwohner (Mio)" &amp;lt;= $(MaxEinw);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 09:38:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-Functions-in-Load-Script-doesn-t-work/m-p/274358#M102613</guid>
      <dc:creator />
      <dc:date>2011-12-02T09:38:10Z</dc:date>
    </item>
    <item>
      <title>VB Functions in Load Script doesn´t work</title>
      <link>https://community.qlik.com/t5/QlikView/VB-Functions-in-Load-Script-doesn-t-work/m-p/274359#M102614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 07:26:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-Functions-in-Load-Script-doesn-t-work/m-p/274359#M102614</guid>
      <dc:creator />
      <dc:date>2011-12-05T07:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: VB Functions in Load Script doesn´t work</title>
      <link>https://community.qlik.com/t5/QlikView/VB-Functions-in-Load-Script-doesn-t-work/m-p/274360#M102615</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;I'd rather use the following to populate a variable prompting the user&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Let vGetInput = Input('Enter Text: ', 'Fill before continuing'); &lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 08:02:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-Functions-in-Load-Script-doesn-t-work/m-p/274360#M102615</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-12-05T08:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: VB Functions in Load Script doesn´t work</title>
      <link>https://community.qlik.com/t5/QlikView/VB-Functions-in-Load-Script-doesn-t-work/m-p/274361#M102616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don´t need a input box. Its only a example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to scan recursive a folder with subfolders and import all sheets with defined filenames. I have written a short vbscript that do this and return all&amp;nbsp; filenames.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 08:18:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-Functions-in-Load-Script-doesn-t-work/m-p/274361#M102616</guid>
      <dc:creator />
      <dc:date>2011-12-05T08:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: VB Functions in Load Script doesn´t work</title>
      <link>https://community.qlik.com/t5/QlikView/VB-Functions-in-Load-Script-doesn-t-work/m-p/274362#M102617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you still need to get it working, check &lt;A _jive_internal="true" href="https://community.qlik.com/message/17774"&gt;this thread&lt;/A&gt; that addresses a similar issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 08:37:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-Functions-in-Load-Script-doesn-t-work/m-p/274362#M102617</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-12-05T08:37:45Z</dc:date>
    </item>
    <item>
      <title>VB Functions in Load Script doesn´t work</title>
      <link>https://community.qlik.com/t5/QlikView/VB-Functions-in-Load-Script-doesn-t-work/m-p/274363#M102618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you very much, but it seems that's not my day&lt;/P&gt;&lt;P&gt;I use QlikView 9 and there is no function FileList()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 09:43:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-Functions-in-Load-Script-doesn-t-work/m-p/274363#M102618</guid>
      <dc:creator />
      <dc:date>2011-12-05T09:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: VB Functions in Load Script doesn´t work</title>
      <link>https://community.qlik.com/t5/QlikView/VB-Functions-in-Load-Script-doesn-t-work/m-p/274364#M102619</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;I'm using v9 SR4 and works just fine. Runs the folder and loads as expected. What error are you getting?&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;Miguel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: I didn't want to remain in doubt. I've just checked the Reference Manual for version 9 and "filelist" is documented in the For Next loop, so it should work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 10:30:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-Functions-in-Load-Script-doesn-t-work/m-p/274364#M102619</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-12-05T10:30:03Z</dc:date>
    </item>
    <item>
      <title>VB Functions in Load Script doesn´t work</title>
      <link>https://community.qlik.com/t5/QlikView/VB-Functions-in-Load-Script-doesn-t-work/m-p/274365#M102620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tadaaaa.....&lt;/P&gt;&lt;P&gt;filelist and dirlist are not listed in the functionlists or searchable in the help system.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Descriptions are hide under "for each.... next"&lt;/P&gt;&lt;P&gt;The script is now working....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 10:41:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-Functions-in-Load-Script-doesn-t-work/m-p/274365#M102620</guid>
      <dc:creator />
      <dc:date>2011-12-05T10:41:02Z</dc:date>
    </item>
  </channel>
</rss>

