<?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: Trying to use escape characters for double quote in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Trying-to-use-escape-characters-for-double-quote/m-p/267965#M52163</link>
    <description>&lt;P&gt;You can also use special escape characters \[ and ]\ to allow any characters, including double quotes, in the string.&amp;nbsp; I'm also using evalinsert for cleaner looking code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;initcol = "0";
var2 = evalinsert("\[:Name("^initcol^")]\");
write(var2);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;From the log:&lt;/P&gt;
&lt;PRE&gt;:Name("0")&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 May 2020 12:50:24 GMT</pubDate>
    <dc:creator>pmroz</dc:creator>
    <dc:date>2020-05-20T12:50:24Z</dc:date>
    <item>
      <title>Trying to use escape characters for double quote</title>
      <link>https://community.jmp.com/t5/Discussions/Trying-to-use-escape-characters-for-double-quote/m-p/267845#M52145</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;var=":Name\!"" || initCol || "\!"";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am trying to create a string variable which would contain the following: :Name("0")&lt;/P&gt;&lt;P&gt;I want to eventually extract data from a column named "0" which is why I'm trying to store this string into a variable. However the output gives me :&amp;nbsp;var = ":Name(\!"0)\!"";&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems like my escape characters aren't working properly... but without the escape characters I can't run my code at all. Can anyone please help? Could there possibly be a better way to index this column? The "initCol" will always contain a number, but it may not always be 0, which is why I need to store the number of interest in a variable before indexing the column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 20:57:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Trying-to-use-escape-characters-for-double-quote/m-p/267845#M52145</guid>
      <dc:creator>kadiew</dc:creator>
      <dc:date>2020-05-19T20:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use escape characters for double quote</title>
      <link>https://community.jmp.com/t5/Discussions/Trying-to-use-escape-characters-for-double-quote/m-p/267857#M52149</link>
      <description>&lt;P&gt;This works for me&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;initCol = "0";

var = ":Name(\!"" || initCol || "\!")";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 21:35:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Trying-to-use-escape-characters-for-double-quote/m-p/267857#M52149</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-05-19T21:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use escape characters for double quote</title>
      <link>https://community.jmp.com/t5/Discussions/Trying-to-use-escape-characters-for-double-quote/m-p/267965#M52163</link>
      <description>&lt;P&gt;You can also use special escape characters \[ and ]\ to allow any characters, including double quotes, in the string.&amp;nbsp; I'm also using evalinsert for cleaner looking code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;initcol = "0";
var2 = evalinsert("\[:Name("^initcol^")]\");
write(var2);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;From the log:&lt;/P&gt;
&lt;PRE&gt;:Name("0")&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 12:50:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Trying-to-use-escape-characters-for-double-quote/m-p/267965#M52163</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2020-05-20T12:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use escape characters for double quote</title>
      <link>https://community.jmp.com/t5/Discussions/Trying-to-use-escape-characters-for-double-quote/m-p/268005#M52171</link>
      <description>&lt;P&gt;Could there be a setting I need to change in my jmp to get the codes mentioned to work? I have tried both solutions, and both of them result in the following output:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;colsName = {":Name(\!"0\!")"};
colsName2 = {":Name(\!"0\!")"};&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the initial code:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;colsName[count] = Eval Insert( "\[:Name("^test^")]\" );
colsName2[count] = ":Name(\!"" || test || "\!")";

Show( colsName );
Show( colsName2 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;colsName is a list of column names which is incremented. For now, count is equal to 1, and only one value (value 0) is trying to get written to the first element of the list, but I can't seem to get rid of the escape characters "\!".&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 12:58:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Trying-to-use-escape-characters-for-double-quote/m-p/268005#M52171</guid>
      <dc:creator>kadiew</dc:creator>
      <dc:date>2020-05-21T12:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use escape characters for double quote</title>
      <link>https://community.jmp.com/t5/Discussions/Trying-to-use-escape-characters-for-double-quote/m-p/268011#M52174</link>
      <description>&lt;P&gt;JMP is working properly.&amp;nbsp; When you use show or print the escape characters for double quotes are shown.&amp;nbsp; If you use &lt;STRONG&gt;write()&lt;/STRONG&gt; instead you'll see that the values are correct.&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 16:30:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Trying-to-use-escape-characters-for-double-quote/m-p/268011#M52174</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2020-05-20T16:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use escape characters for double quote</title>
      <link>https://community.jmp.com/t5/Discussions/Trying-to-use-escape-characters-for-double-quote/m-p/268016#M52178</link>
      <description>Here are the results when using write():&lt;BR /&gt;{":Name(\!"0\!")"}&lt;BR /&gt;{":Name(\!"0\!")"}&lt;BR /&gt;&lt;BR /&gt;The issue are the " \" " contained in my list beside the "0". This shouldn't be there.</description>
      <pubDate>Wed, 20 May 2020 16:56:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Trying-to-use-escape-characters-for-double-quote/m-p/268016#M52178</guid>
      <dc:creator>kadiew</dc:creator>
      <dc:date>2020-05-20T16:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use escape characters for double quote</title>
      <link>https://community.jmp.com/t5/Discussions/Trying-to-use-escape-characters-for-double-quote/m-p/268031#M52180</link>
      <description>&lt;P&gt;Yes, it is correct. The string is&amp;nbsp;&lt;SPAN&gt;:Name("0").&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 18:15:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Trying-to-use-escape-characters-for-double-quote/m-p/268031#M52180</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-05-20T18:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use escape characters for double quote</title>
      <link>https://community.jmp.com/t5/Discussions/Trying-to-use-escape-characters-for-double-quote/m-p/268033#M52181</link>
      <description>&lt;P&gt;You cannot use write with the list because it's not a string.&amp;nbsp; Show includes the escape characters.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you use write for a list element you'll see that the string is correct.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;show(colsname, colsname2);
write("\!n" || colsName[1] || "\!n");
write(colsName2[1]);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;From the log:&lt;/P&gt;
&lt;PRE&gt;colsname = {":Name(\!"0\!")"};
colsname2 = {":Name(\!"0\!")"};
:Name("0")
:Name("0")&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 May 2020 18:23:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Trying-to-use-escape-characters-for-double-quote/m-p/268033#M52181</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2020-05-20T18:23:20Z</dc:date>
    </item>
  </channel>
</rss>

