<?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 character in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Escape-character-in-expression/m-p/96377#M756753</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if the below link helps:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/226623"&gt;What is chr(39)? Why it is&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Sep 2018 15:44:45 GMT</pubDate>
    <dc:creator>trdandamudi</dc:creator>
    <dc:date>2018-09-21T15:44:45Z</dc:date>
    <item>
      <title>Escape character in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Escape-character-in-expression/m-p/96376#M756752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi im new to qlikview, and im trying to write and expression which is generating an SQL string depending on selected value and such. Then ill use a macro to copy that SQL string to clipboard. It all works really well, beside just this little really annoying detail. The created_by field in the table is in varchar, meaning the string needs single quotation marks around the letters. as my expression works now i comes out like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insert into qv_exclude&lt;/P&gt;&lt;P&gt;(ctrl_id,exclude_val,exclude_column,created_by)&lt;/P&gt;&lt;P&gt;values(294, 3336888.18,2,ABC)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should come out like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insert into qv_exclude&lt;/P&gt;&lt;P&gt;(ctrl_id,exclude_val,exclude_column,created_by)&lt;/P&gt;&lt;P&gt;values(294, 3336888.18,2,'ABC')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the single quotation marks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the a &lt;SPAN style="font-size: 10pt;"&gt;_vOSUser variable to get the name. i managed to escape the first quotation mark but i can get the expression to work.&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;the part of the that is causing me pain looks like this &amp;amp;','&amp;amp;mid(_vOSUser,13)&amp;amp;')'&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;if i add another single quote in the end so its &amp;amp;'')' i get this error ///&amp;nbsp;&amp;nbsp; Error: Garbage after expression: ')'&amp;nbsp; ///&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;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Escape-character-in-expression/m-p/96376#M756752</guid>
      <dc:creator>eclecticfish</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Escape character in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Escape-character-in-expression/m-p/96377#M756753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if the below link helps:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/226623"&gt;What is chr(39)? Why it is&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2018 15:44:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Escape-character-in-expression/m-p/96377#M756753</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2018-09-21T15:44:45Z</dc:date>
    </item>
  </channel>
</rss>

