<?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: escape a single quote (') in INDEX string-function. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/escape-a-single-quote-in-INDEX-string-function/m-p/775079#M274848</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If your input is in variable, then try like this&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=Index(vStr,chr(39),1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;EDIT: Value of vStr is Best Squash Player in '1998' is 'XYZ'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;You can use quote without chr(39) when you assign string to a variable&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Nov 2014 07:16:57 GMT</pubDate>
    <dc:creator>anbu1984</dc:creator>
    <dc:date>2014-11-19T07:16:57Z</dc:date>
    <item>
      <title>escape a single quote (') in INDEX string-function.</title>
      <link>https://community.qlik.com/t5/QlikView/escape-a-single-quote-in-INDEX-string-function/m-p/775076#M274845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to find out a way to identify INDEX of a single-quote, for example in string: Best Squash Player in '1998' is 'XYZ'. I want to find the index of first single-quote (the one just before 1998).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried something like this Index('Best Squash Player in ''1998'' is ''XYZ'','''',1). But it results into an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each of the single-quotes is preceded by another single-quote as an escape character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 06:53:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/escape-a-single-quote-in-INDEX-string-function/m-p/775076#M274845</guid>
      <dc:creator />
      <dc:date>2014-11-19T06:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: escape a single quote (') in INDEX string-function.</title>
      <link>https://community.qlik.com/t5/QlikView/escape-a-single-quote-in-INDEX-string-function/m-p/775077#M274846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Index('Best Squash Player in ' &amp;amp; Chr(39) &amp;amp;'1998' &amp;amp; chr(39) &amp;amp; ' is ' &amp;amp; chr(39) &amp;amp; 'XYZ' &amp;amp; chr(39),chr(39),1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 07:00:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/escape-a-single-quote-in-INDEX-string-function/m-p/775077#M274846</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-11-19T07:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: escape a single quote (') in INDEX string-function.</title>
      <link>https://community.qlik.com/t5/QlikView/escape-a-single-quote-in-INDEX-string-function/m-p/775078#M274847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anbu. Thanks for a quick response. But I was wondering if my string was dynamic or stored in a variable,&amp;nbsp; the above solution may not hold correct. Because in that case I would not be in a position to identify and place chr(39) dynamically.&lt;/P&gt;&lt;P&gt;Sorry, if I missed that part in my question, but it would be best if you put forward a dynamic approach. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 07:11:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/escape-a-single-quote-in-INDEX-string-function/m-p/775078#M274847</guid>
      <dc:creator />
      <dc:date>2014-11-19T07:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: escape a single quote (') in INDEX string-function.</title>
      <link>https://community.qlik.com/t5/QlikView/escape-a-single-quote-in-INDEX-string-function/m-p/775079#M274848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If your input is in variable, then try like this&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=Index(vStr,chr(39),1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;EDIT: Value of vStr is Best Squash Player in '1998' is 'XYZ'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;You can use quote without chr(39) when you assign string to a variable&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 07:16:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/escape-a-single-quote-in-INDEX-string-function/m-p/775079#M274848</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-11-19T07:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: escape a single quote (') in INDEX string-function.</title>
      <link>https://community.qlik.com/t5/QlikView/escape-a-single-quote-in-INDEX-string-function/m-p/775080#M274849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome. It worked. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 07:33:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/escape-a-single-quote-in-INDEX-string-function/m-p/775080#M274849</guid>
      <dc:creator />
      <dc:date>2014-11-19T07:33:45Z</dc:date>
    </item>
  </channel>
</rss>

