<?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: filetime function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/filetime-function/m-p/14986#M607500</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vFileTime =&amp;nbsp; ActiveDocument.Evaluate("If(IsNull(FileTime('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;D:\MACROTEST\VISION1.csv')), 1, 0)&lt;/SPAN&gt;")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If vFileTime = 1 then&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;msgbox("")&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;else&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;sgbox&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;end if&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jan 2018 16:27:51 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-01-29T16:27:51Z</dc:date>
    <item>
      <title>filetime function</title>
      <link>https://community.qlik.com/t5/QlikView/filetime-function/m-p/14985#M607499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used filetime function with qlikview MACRO to test the file exist&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if isnull(filetime("D:\MACROTEST\VISION1.csv")) then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;msgbox("")&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;sgbox&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;and i have this error &lt;STRONG style="color: #ff0000;"&gt;Type mismatch: 'filetime'&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2018 16:22:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filetime-function/m-p/14985#M607499</guid>
      <dc:creator>souadouert</dc:creator>
      <dc:date>2018-01-29T16:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: filetime function</title>
      <link>https://community.qlik.com/t5/QlikView/filetime-function/m-p/14986#M607500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vFileTime =&amp;nbsp; ActiveDocument.Evaluate("If(IsNull(FileTime('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;D:\MACROTEST\VISION1.csv')), 1, 0)&lt;/SPAN&gt;")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If vFileTime = 1 then&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;msgbox("")&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;else&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;sgbox&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;end if&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2018 16:27:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filetime-function/m-p/14986#M607500</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-29T16:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: filetime function</title>
      <link>https://community.qlik.com/t5/QlikView/filetime-function/m-p/14987#M607502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Souad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried FileTime() and it works fine. Would be good if you share a sample file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherway you can try using other functions like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if &lt;STRONG&gt;len(FileSize(&lt;/STRONG&gt;'file_name'&lt;STRONG&gt;))&lt;/STRONG&gt; &amp;gt; 0 THEN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ELSE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Carlos M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2018 22:08:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filetime-function/m-p/14987#M607502</guid>
      <dc:creator>CarlosAMonroy</dc:creator>
      <dc:date>2018-01-29T22:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: filetime function</title>
      <link>https://community.qlik.com/t5/QlikView/filetime-function/m-p/14988#M607504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Souad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;You can also try&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub Test&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set FSO = CreateObject("scripting.filesystemobject")&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If&amp;nbsp; FSO.FileExists("&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;D:\MACROTEST\VISION1.csv&lt;/SPAN&gt;") = true Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; Msgbox "Yes"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; Msgbox "No"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;End If&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;End Sub&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG style="color: #ff0000;"&gt;Note:&lt;/STRONG&gt; You need to enable &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;"Allow System Access" &lt;SPAN style="font-size: 13.3333px;"&gt;option &lt;/SPAN&gt;in the current local security.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2018 03:11:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filetime-function/m-p/14988#M607504</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2018-01-30T03:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: filetime function</title>
      <link>https://community.qlik.com/t5/QlikView/filetime-function/m-p/14989#M607507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you are doing good!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think FileTime function in macro does not work. I believe only chart functions (not script functions) can be evaluated through macro. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try any script functions inside the below syntax and you will see "Its not a valid function" error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Msgbox&amp;nbsp; ActiveDocument.Evaluate("Any Script Function")&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2018 03:18:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filetime-function/m-p/14989#M607507</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2018-01-30T03:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: filetime function</title>
      <link>https://community.qlik.com/t5/QlikView/filetime-function/m-p/14990#M607509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sense... I used a chart function before like that, so I thought this might work as well &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;. Thanks for pointing it out &lt;A href="https://community.qlik.com/people/tamilarasu"&gt;tamilarasu&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2018 13:07:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filetime-function/m-p/14990#M607509</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-30T13:07:00Z</dc:date>
    </item>
  </channel>
</rss>

