<?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 values from sub to function in VB in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/passing-values-from-sub-to-function-in-VB/m-p/196459#M56530</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In my VB macro i declare this variable in my sub Export,&lt;BR /&gt;&lt;BR /&gt;Path = ActiveDocument.Evaluate("left(DocumentPath(), index(DocumentPath(), '', -1))")&lt;BR /&gt;call openFolder(Path) 'I don't know how to pass the Path value to openFolder&lt;/P&gt;&lt;P&gt;function openFolder(ByVal Path)&lt;BR /&gt;Set WshShell = CreateObject("Wscript.Shell")&lt;BR /&gt;WSHShell.run Path&lt;BR /&gt;end function&lt;/P&gt;&lt;P&gt;i want to call a function which opens the folder in explorer of Path. is it possible to pass the value of Path to a function? I think it's something like the code above but it doesn't work... Some help would be handy &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Apr 2011 14:31:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-04T14:31:26Z</dc:date>
    <item>
      <title>passing values from sub to function in VB</title>
      <link>https://community.qlik.com/t5/QlikView/passing-values-from-sub-to-function-in-VB/m-p/196459#M56530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In my VB macro i declare this variable in my sub Export,&lt;BR /&gt;&lt;BR /&gt;Path = ActiveDocument.Evaluate("left(DocumentPath(), index(DocumentPath(), '', -1))")&lt;BR /&gt;call openFolder(Path) 'I don't know how to pass the Path value to openFolder&lt;/P&gt;&lt;P&gt;function openFolder(ByVal Path)&lt;BR /&gt;Set WshShell = CreateObject("Wscript.Shell")&lt;BR /&gt;WSHShell.run Path&lt;BR /&gt;end function&lt;/P&gt;&lt;P&gt;i want to call a function which opens the folder in explorer of Path. is it possible to pass the value of Path to a function? I think it's something like the code above but it doesn't work... Some help would be handy &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 14:31:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/passing-values-from-sub-to-function-in-VB/m-p/196459#M56530</guid>
      <dc:creator />
      <dc:date>2011-04-04T14:31:26Z</dc:date>
    </item>
  </channel>
</rss>

