<?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: mid functon in macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/mid-functon-in-macro/m-p/1381235#M611138</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THANK YOU &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Nov 2017 18:27:32 GMT</pubDate>
    <dc:creator>souadouert</dc:creator>
    <dc:date>2017-11-27T18:27:32Z</dc:date>
    <item>
      <title>mid functon in macro</title>
      <link>https://community.qlik.com/t5/QlikView/mid-functon-in-macro/m-p/1381231#M611133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I used this script to export straight table with each selection date_s(yyyy/mm)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Si have to store each file qvd with this&amp;nbsp; ruls "straight"num_month .qvd&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;So i used this funtion &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;NAMEFILE=Instr(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit;"&gt;String&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;,6,2) &lt;/STRONG&gt;to extract th month like &lt;STRONG&gt;MID() &lt;/STRONG&gt;FUNTION&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;eg: 2017/10&amp;nbsp; title=10&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;H3 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #800000;"&gt;set val=ActiveDocument.Fields("date_s").GetPossibleValues&lt;/SPAN&gt;&lt;/H3&gt;&lt;H3&gt;&lt;SPAN style="color: #800000;"&gt;for i=0 to val.Count-1&lt;/SPAN&gt;&lt;/H3&gt;&lt;H3&gt;&lt;SPAN style="color: #800000;"&gt;ActiveDocument.Fields("date_s").Select (val.Item(i).Text)&lt;/SPAN&gt;&lt;/H3&gt;&lt;H3&gt;&lt;SPAN style="color: #800000;"&gt;set obj = ActiveDocument.GetSheetObject("CH173")&lt;/SPAN&gt;&lt;/H3&gt;&lt;H3&gt;&lt;SPAN style="color: #800000;"&gt;set String=(val.Item(i).Text)&lt;/SPAN&gt;&lt;/H3&gt;&lt;H3&gt;&lt;SPAN style="color: #800000;"&gt;NAMEFILE=Instr(String,6,2)&lt;/SPAN&gt;&lt;/H3&gt;&lt;H3&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj.ExportEx "C:\Users\04488\Desktop\Vision\straight"&amp;amp; NAMEFILE &amp;amp; ".qvd",4&lt;/SPAN&gt;&lt;/H3&gt;&lt;H3 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #800000;"&gt;next&lt;/SPAN&gt;&lt;/H3&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;but i have error &lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Object required: '[string: "12/2015"&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;]'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2017 18:12:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mid-functon-in-macro/m-p/1381231#M611133</guid>
      <dc:creator>souadouert</dc:creator>
      <dc:date>2017-11-27T18:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: mid functon in macro</title>
      <link>https://community.qlik.com/t5/QlikView/mid-functon-in-macro/m-p/1381232#M611134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Hi Souad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Why not you use right function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3 style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;NAMEFILE &lt;/SPAN&gt;= &lt;SPAN style="font-family: inherit; font-style: inherit; font-weight: inherit; color: #575757; font-size: 10pt;"&gt;Right(val.Item(i).Text,2)&lt;/SPAN&gt;&lt;/H3&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2017 18:14:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mid-functon-in-macro/m-p/1381232#M611134</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2017-11-27T18:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: mid functon in macro</title>
      <link>https://community.qlik.com/t5/QlikView/mid-functon-in-macro/m-p/1381233#M611135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="padding-bottom: 42px; margin-right: 4px;"&gt;we cAn use with macro RIGHT()?&lt;/P&gt;&lt;P class="g-unit" style="color: #777777; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;/P&gt;&lt;DIV style="padding-bottom: 20px; margin-left: 4px;"&gt;&lt;DIV style="margin: 0 0 8px; background: whitesmoke;"&gt;&lt;DIV class="trans-verified-button-large" dir="ltr" style="padding: 8px;"&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2017 18:19:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mid-functon-in-macro/m-p/1381233#M611135</guid>
      <dc:creator>souadouert</dc:creator>
      <dc:date>2017-11-27T18:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: mid functon in macro</title>
      <link>https://community.qlik.com/t5/QlikView/mid-functon-in-macro/m-p/1381234#M611136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah. Here is the correct code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #008080; font-style: inherit; font-size: 10pt; font-family: inherit; font-weight: inherit;"&gt;set val=ActiveDocument.Fields("date_s").GetPossibleValues&lt;/SPAN&gt;&lt;/H3&gt;&lt;H3 style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #008080; font-size: 10pt;"&gt;for i=0 to val.Count-1&lt;/SPAN&gt;&lt;/H3&gt;&lt;H3 style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #008080; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.Fields("date_s").Select (val.Item(i).Text)&lt;/SPAN&gt;&lt;/H3&gt;&lt;H3 style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #008080; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set obj = ActiveDocument.GetSheetObject("CH173")&lt;/SPAN&gt;&lt;/H3&gt;&lt;H3 style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; color: #008080;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NAMEFILE=&amp;nbsp; Right (&lt;/SPAN&gt;val.Item(i).Text, 2)&lt;/SPAN&gt;&lt;/H3&gt;&lt;H3 style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #008080; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj.ExportEx "C:\Users\04488\Desktop\Vision\straight"&amp;amp; NAMEFILE &amp;amp; ".qvd",4&lt;/SPAN&gt;&lt;/H3&gt;&lt;H3 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #008080; font-style: inherit; font-size: 10pt; font-family: inherit; font-weight: inherit;"&gt;next&lt;/SPAN&gt;&lt;/H3&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2017 18:21:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mid-functon-in-macro/m-p/1381234#M611136</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2017-11-27T18:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: mid functon in macro</title>
      <link>https://community.qlik.com/t5/QlikView/mid-functon-in-macro/m-p/1381235#M611138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THANK YOU &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2017 18:27:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mid-functon-in-macro/m-p/1381235#M611138</guid>
      <dc:creator>souadouert</dc:creator>
      <dc:date>2017-11-27T18:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: mid functon in macro</title>
      <link>https://community.qlik.com/t5/QlikView/mid-functon-in-macro/m-p/1381236#M611142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use mid or right, but I'm guessing you will get an error with your filename. If val(item(i),Text contains "/". These are not valid symbols in file names. I usually use the replace function to replace "/" with "-".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2017 18:29:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mid-functon-in-macro/m-p/1381236#M611142</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2017-11-27T18:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: mid functon in macro</title>
      <link>https://community.qlik.com/t5/QlikView/mid-functon-in-macro/m-p/1381237#M611144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi M W,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right. But Souad is taking only the month numbers (01, 02... 12) from the date field. So I am pretty sure, it won't throw any error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2017 18:33:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mid-functon-in-macro/m-p/1381237#M611144</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2017-11-27T18:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: mid functon in macro</title>
      <link>https://community.qlik.com/t5/QlikView/mid-functon-in-macro/m-p/1381238#M611146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you for your interactivity &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2017 19:06:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mid-functon-in-macro/m-p/1381238#M611146</guid>
      <dc:creator>souadouert</dc:creator>
      <dc:date>2017-11-27T19:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: mid functon in macro</title>
      <link>https://community.qlik.com/t5/QlikView/mid-functon-in-macro/m-p/1381239#M611147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2017 19:13:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mid-functon-in-macro/m-p/1381239#M611147</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2017-11-27T19:13:35Z</dc:date>
    </item>
  </channel>
</rss>

