<?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: I cannot call Sub routine from the Module. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/I-cannot-call-Sub-routine-from-the-Module/m-p/1283827#M622683</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot call Module Subs from script. The script Call statement calls script subs, not module subs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use Module Functions in script like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;NextContractDate(ContractLength,ContractStart)&lt;/SPAN&gt; as NextContract Date&lt;/P&gt;&lt;P&gt;...FROM xxx;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jan 2017 04:37:28 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2017-01-20T04:37:28Z</dc:date>
    <item>
      <title>I cannot call Sub routine from the Module.</title>
      <link>https://community.qlik.com/t5/QlikView/I-cannot-call-Sub-routine-from-the-Module/m-p/1283825#M622681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the script in the module.&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;function NextContractDate(ContractLength,ContractStart)&lt;/P&gt;&lt;P&gt;&amp;nbsp; f = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; do while f&lt;/P&gt;&lt;P&gt;&amp;nbsp; NextDate = DateAdd("m",ContractLength, ContractStart)&lt;/P&gt;&lt;P&gt;&amp;nbsp; if NextDate &amp;lt; date() then&lt;/P&gt;&lt;P&gt;&amp;nbsp; ContractStart = NextDate&lt;/P&gt;&lt;P&gt;&amp;nbsp; f = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; else &lt;/P&gt;&lt;P&gt;&amp;nbsp; f = 0&lt;/P&gt;&lt;P&gt;&amp;nbsp; end if&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; loop&lt;/P&gt;&lt;P&gt;&amp;nbsp; NextContractDate = NextDate * 1&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;sub C&lt;/P&gt;&lt;P&gt;&amp;nbsp; msgbox NextContractDate(9, 40909)&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function TestMe(a,b)&lt;/P&gt;&lt;P&gt;&amp;nbsp; TestMe = a + b&lt;/P&gt;&lt;P&gt;end function&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;--------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Here is the script in the Qlikview document.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Call C&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I don't know the reason why I am unable to call sub C from the script. Could you please figure out this issue?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thank you very much indeed.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 03:43:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-cannot-call-Sub-routine-from-the-Module/m-p/1283825#M622681</guid>
      <dc:creator />
      <dc:date>2017-01-20T03:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: I cannot call Sub routine from the Module.</title>
      <link>https://community.qlik.com/t5/QlikView/I-cannot-call-Sub-routine-from-the-Module/m-p/1283826#M622682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The error screen below was populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="20-01-2017 10-44-45 AM.png" class="jive-image image-1" src="/legacyfs/online/150158_20-01-2017 10-44-45 AM.png" style="height: 292px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 03:46:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-cannot-call-Sub-routine-from-the-Module/m-p/1283826#M622682</guid>
      <dc:creator />
      <dc:date>2017-01-20T03:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: I cannot call Sub routine from the Module.</title>
      <link>https://community.qlik.com/t5/QlikView/I-cannot-call-Sub-routine-from-the-Module/m-p/1283827#M622683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot call Module Subs from script. The script Call statement calls script subs, not module subs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use Module Functions in script like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;NextContractDate(ContractLength,ContractStart)&lt;/SPAN&gt; as NextContract Date&lt;/P&gt;&lt;P&gt;...FROM xxx;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 04:37:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-cannot-call-Sub-routine-from-the-Module/m-p/1283827#M622683</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2017-01-20T04:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: I cannot call Sub routine from the Module.</title>
      <link>https://community.qlik.com/t5/QlikView/I-cannot-call-Sub-routine-from-the-Module/m-p/1283828#M622684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oh. It's clear answer Rob. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answering.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 05:31:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-cannot-call-Sub-routine-from-the-Module/m-p/1283828#M622684</guid>
      <dc:creator />
      <dc:date>2017-01-20T05:31:12Z</dc:date>
    </item>
  </channel>
</rss>

