<?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: Cleaner code with relative path in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cleaner-code-with-relative-path/m-p/884329#M1006947</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rob,&amp;nbsp; Basically assigning the root folder to a variable made things cleaner and it works perfectly.&lt;/P&gt;&lt;P&gt;So now i wrote it as this.&lt;/P&gt;&lt;P&gt; LET vRootMasterPath ='C:\Users\muzamirnasir\Desktop\Mini Project\Prototype1\Resident Survey\Data\Master';&lt;/P&gt;&lt;P&gt;&amp;nbsp; LET vErrorMasterPath ='$(vRootMasterPath)\Error';&lt;/P&gt;&lt;P&gt;&amp;nbsp; LET vStoreMasterQVD ='$(vRootMasterPath)\QVD\';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 May 2015 03:02:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-05-20T03:02:35Z</dc:date>
    <item>
      <title>Cleaner code with relative path</title>
      <link>https://community.qlik.com/t5/QlikView/Cleaner-code-with-relative-path/m-p/884327#M1006945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am aware that i can use "..\" to call the folder before it. But is there a way such that i do not have to write out so many relative paths and end up writing something like "..\..\..\..\..\" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know there is a way to do this. But i can't seem to find it. I hope somebody can answer my question.&lt;/P&gt;&lt;P&gt;I just need to access the various folders from the directory. I would prefer to assign it to each variable to make other coders have an easier time understanding my work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DIRECTORY C:\Users\muzamirnasir\Desktop\Mini Project\Prototype1\Resident Survey\Data\Data\Programs;&lt;/P&gt;&lt;P&gt;LET vErrorProgramPath = 'C:\Users\muzamirnasir\Desktop\Mini Project\Prototype1\Resident Survey\Data\Data\Programs\Error';&lt;/P&gt;&lt;P&gt;LET vStoreProgramQVD = 'C:\Users\muzamirnasir\Desktop\Mini Project\Prototype1\Resident Survey\Data\Data\Programs\QVD\';&lt;/P&gt;&lt;P&gt;LET vStoreProgramBackup ='C:\Users\muzamirnasir\Desktop\Mini Project\Prototype1\Resident Survey\Data\Data\Programs\Backup';&lt;/P&gt;&lt;P&gt;LET vRootFolderPath = 'C:\Users\muzamirnasir\Desktop\Mini Project\Prototype1\Resident Survey\Data\Data\Programs\All Programs';&lt;/P&gt;&lt;P&gt;LET vFileExtension ='*xls';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 07:55:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cleaner-code-with-relative-path/m-p/884327#M1006945</guid>
      <dc:creator />
      <dc:date>2015-05-19T07:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaner code with relative path</title>
      <link>https://community.qlik.com/t5/QlikView/Cleaner-code-with-relative-path/m-p/884328#M1006946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is precisely the way most experienced developers manage the paths. Assign the paths to variables using LET or SET and then reference the variable in the LOAD statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM [$(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vRootFolderPath)]\mydata.xls&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 16:14:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cleaner-code-with-relative-path/m-p/884328#M1006946</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-05-19T16:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaner code with relative path</title>
      <link>https://community.qlik.com/t5/QlikView/Cleaner-code-with-relative-path/m-p/884329#M1006947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rob,&amp;nbsp; Basically assigning the root folder to a variable made things cleaner and it works perfectly.&lt;/P&gt;&lt;P&gt;So now i wrote it as this.&lt;/P&gt;&lt;P&gt; LET vRootMasterPath ='C:\Users\muzamirnasir\Desktop\Mini Project\Prototype1\Resident Survey\Data\Master';&lt;/P&gt;&lt;P&gt;&amp;nbsp; LET vErrorMasterPath ='$(vRootMasterPath)\Error';&lt;/P&gt;&lt;P&gt;&amp;nbsp; LET vStoreMasterQVD ='$(vRootMasterPath)\QVD\';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 03:02:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cleaner-code-with-relative-path/m-p/884329#M1006947</guid>
      <dc:creator />
      <dc:date>2015-05-20T03:02:35Z</dc:date>
    </item>
  </channel>
</rss>

