<?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 Passing String to Macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Passing-String-to-Macro/m-p/792868#M280267</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'm trying to execute a macro from load script. But I need to pass a string to the macro function. But for some reason, the string is not passed. Here is an example:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Macro:&lt;/P&gt;&lt;P&gt;function createFile(a)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set fso = CreateObject("Scripting.FileSystemObject")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set s = fso.CreateTextFile("D:\test.txt", True)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.writeline(a) //it is not wring anything to the file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.Close()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;end function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the load script:-&lt;/P&gt;&lt;P&gt;LET vTest = createFile("testing script");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea on what is wrong in the script above?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Feb 2015 02:58:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-02-26T02:58:09Z</dc:date>
    <item>
      <title>Passing String to Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-String-to-Macro/m-p/792868#M280267</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'm trying to execute a macro from load script. But I need to pass a string to the macro function. But for some reason, the string is not passed. Here is an example:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Macro:&lt;/P&gt;&lt;P&gt;function createFile(a)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set fso = CreateObject("Scripting.FileSystemObject")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set s = fso.CreateTextFile("D:\test.txt", True)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.writeline(a) //it is not wring anything to the file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.Close()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;end function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the load script:-&lt;/P&gt;&lt;P&gt;LET vTest = createFile("testing script");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea on what is wrong in the script above?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 02:58:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-String-to-Macro/m-p/792868#M280267</guid>
      <dc:creator />
      <dc:date>2015-02-26T02:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Passing String to Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-String-to-Macro/m-p/792869#M280268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There should be single, not double quotes, around your string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;LET vTest = createFile(&lt;STRONG&gt;'&lt;/STRONG&gt;testing script&lt;STRONG&gt;'&lt;/STRONG&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Also make sure your Module security is set to "Allow System Access".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&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"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com" rel="nofollow"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 05:58:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-String-to-Macro/m-p/792869#M280268</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-02-26T05:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Passing String to Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-String-to-Macro/m-p/792870#M280269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! It works now. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; I remember that I tested it with single quote, but it didn't work. So I tried the double quote... weird!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 09:33:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-String-to-Macro/m-p/792870#M280269</guid>
      <dc:creator />
      <dc:date>2015-03-02T09:33:19Z</dc:date>
    </item>
  </channel>
</rss>

