<?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 check filename in an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/check-filename-in-an-expression/m-p/264225#M497298</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to check is a filename exists in a directory&lt;/P&gt;&lt;P&gt;depending on it I want to show the filename in a diagram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;within the script I have found all JPG-Files&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET sDir = 'C:\Users\bumin\pictures\'; // Directory to look through&lt;/P&gt;&lt;P&gt;LET sFile = '*.JPG'; // Searchpattern&lt;/P&gt;&lt;P&gt;LET sSearchPattern = sDir &amp;amp; sFile;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// =================== Scan through directory and list all possible files&lt;/P&gt;&lt;P&gt; FOR EACH vFile in FileList (sSearchPattern)&lt;/P&gt;&lt;P&gt; FilesFound:&lt;/P&gt;&lt;P&gt; LOAD&lt;/P&gt;&lt;P&gt; '$(vFile)' AS FileFound&lt;/P&gt;&lt;P&gt; AUTOGENERATE 1;&lt;/P&gt;&lt;P&gt; NEXT vFile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now I want to check if a spcific filename does exists in FileFound&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried several functions but I didn' got it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can someone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Bumin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Oct 2011 20:46:24 GMT</pubDate>
    <dc:creator>bumin</dc:creator>
    <dc:date>2011-10-20T20:46:24Z</dc:date>
    <item>
      <title>check filename in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/check-filename-in-an-expression/m-p/264225#M497298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to check is a filename exists in a directory&lt;/P&gt;&lt;P&gt;depending on it I want to show the filename in a diagram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;within the script I have found all JPG-Files&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET sDir = 'C:\Users\bumin\pictures\'; // Directory to look through&lt;/P&gt;&lt;P&gt;LET sFile = '*.JPG'; // Searchpattern&lt;/P&gt;&lt;P&gt;LET sSearchPattern = sDir &amp;amp; sFile;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// =================== Scan through directory and list all possible files&lt;/P&gt;&lt;P&gt; FOR EACH vFile in FileList (sSearchPattern)&lt;/P&gt;&lt;P&gt; FilesFound:&lt;/P&gt;&lt;P&gt; LOAD&lt;/P&gt;&lt;P&gt; '$(vFile)' AS FileFound&lt;/P&gt;&lt;P&gt; AUTOGENERATE 1;&lt;/P&gt;&lt;P&gt; NEXT vFile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now I want to check if a spcific filename does exists in FileFound&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried several functions but I didn' got it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can someone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Bumin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 20:46:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/check-filename-in-an-expression/m-p/264225#M497298</guid>
      <dc:creator>bumin</dc:creator>
      <dc:date>2011-10-20T20:46:24Z</dc:date>
    </item>
    <item>
      <title>check filename in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/check-filename-in-an-expression/m-p/264226#M497299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have enterred the followinh fomula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Match(sDir&amp;amp;docnum&amp;amp;'.JPG',FileFound)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but then I get each record twice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bumin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 21:18:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/check-filename-in-an-expression/m-p/264226#M497299</guid>
      <dc:creator>bumin</dc:creator>
      <dc:date>2011-10-20T21:18:51Z</dc:date>
    </item>
  </channel>
</rss>

