<?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 launching a function or macro in load script doesn't work in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/launching-a-function-or-macro-in-load-script-doesn-t-work/m-p/352146#M705675</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just tried to launch a function and a macro of a module from inside the load script by copying the example in the Reference Manual of Qlikview Version 11&lt;/P&gt;&lt;P&gt;(italian version:&amp;nbsp; 81 Chiamate di funzioni VBScript dallo script, pag. 899)&lt;/P&gt;&lt;P&gt; but the function call doesn't work and the sub call issues an error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my&amp;nbsp; macro module is:&lt;/P&gt;&lt;P&gt;function func1()&lt;/P&gt;&lt;P&gt;prompt="insert a number"&lt;/P&gt;&lt;P&gt;func1=inputbox(prompt)&lt;/P&gt;&lt;P&gt;end function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub msg1()&lt;/P&gt;&lt;P&gt;msgbox "ready"&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my load script is:&lt;/P&gt;&lt;P&gt;SET ThousandSep='.';&lt;/P&gt;&lt;P&gt;SET DayNames='lun;mar;mer;gio;ven;sab;dom';&lt;/P&gt;&lt;P&gt;call msg1(); //this issues an error&lt;/P&gt;&lt;P&gt;let num=func1();&amp;nbsp; //this doesn't show any inputbox&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Article_id, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Category, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; func1() as pop, //pop remains undefined&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sale_price&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;C:\SH_Tecnica\QLIK\efashion_QV\efashion_of2003.xls&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Article_color_lookup$);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone explain me where am I wrong or which preferences/ioptions should be set?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Mar 2012 11:28:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-14T11:28:17Z</dc:date>
    <item>
      <title>launching a function or macro in load script doesn't work</title>
      <link>https://community.qlik.com/t5/QlikView/launching-a-function-or-macro-in-load-script-doesn-t-work/m-p/352146#M705675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just tried to launch a function and a macro of a module from inside the load script by copying the example in the Reference Manual of Qlikview Version 11&lt;/P&gt;&lt;P&gt;(italian version:&amp;nbsp; 81 Chiamate di funzioni VBScript dallo script, pag. 899)&lt;/P&gt;&lt;P&gt; but the function call doesn't work and the sub call issues an error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my&amp;nbsp; macro module is:&lt;/P&gt;&lt;P&gt;function func1()&lt;/P&gt;&lt;P&gt;prompt="insert a number"&lt;/P&gt;&lt;P&gt;func1=inputbox(prompt)&lt;/P&gt;&lt;P&gt;end function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub msg1()&lt;/P&gt;&lt;P&gt;msgbox "ready"&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my load script is:&lt;/P&gt;&lt;P&gt;SET ThousandSep='.';&lt;/P&gt;&lt;P&gt;SET DayNames='lun;mar;mer;gio;ven;sab;dom';&lt;/P&gt;&lt;P&gt;call msg1(); //this issues an error&lt;/P&gt;&lt;P&gt;let num=func1();&amp;nbsp; //this doesn't show any inputbox&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Article_id, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Category, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; func1() as pop, //pop remains undefined&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sale_price&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;C:\SH_Tecnica\QLIK\efashion_QV\efashion_of2003.xls&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Article_color_lookup$);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone explain me where am I wrong or which preferences/ioptions should be set?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 11:28:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/launching-a-function-or-macro-in-load-script-doesn-t-work/m-p/352146#M705675</guid>
      <dc:creator />
      <dc:date>2012-03-14T11:28:17Z</dc:date>
    </item>
  </channel>
</rss>

