<?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: Parse() command to output quoted string in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Parse-command-to-output-quoted-string/m-p/40113#M23483</link>
    <description>&lt;P&gt;Another way to embed double quotes is to use the \[...]\ delimiters around the string. &amp;nbsp;I'm also using evalinsert() to evaluate List[1], using ^ characters around it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;string2 = evalinsert("\[Select("^List[1]^")]\");&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 08 Jun 2017 14:17:33 GMT</pubDate>
    <dc:creator>pmroz</dc:creator>
    <dc:date>2017-06-08T14:17:33Z</dc:date>
    <item>
      <title>Parse() command to output quoted string</title>
      <link>https://community.jmp.com/t5/Discussions/Parse-command-to-output-quoted-string/m-p/40097#M23469</link>
      <description>&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;I am trying to generate som code by concatenating strings. The string will be evaluated using Eval( Parse( &amp;lt;string&amp;gt;) ). The outcome of this should contain a quoted string, let me exemplify:&lt;/P&gt;&lt;P&gt;List = {"Item1", "Item2"};&lt;/P&gt;&lt;P&gt;string = Concat( "Select(", List[1], ")" );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This string will read "Select(Item1)" and&amp;nbsp;Parse( string )&amp;nbsp;will return&amp;nbsp;Select(Item1). What I want is that Parse( string ) should return Select("Item1"), with quotes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is much appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 08:34:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Parse-command-to-output-quoted-string/m-p/40097#M23469</guid>
      <dc:creator>martin_snogdahl</dc:creator>
      <dc:date>2017-06-08T08:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Parse() command to output quoted string</title>
      <link>https://community.jmp.com/t5/Discussions/Parse-command-to-output-quoted-string/m-p/40098#M23470</link>
      <description>&lt;P&gt;The solution is to add your quotes into the string you are attempting to produce. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;\! is the escape sequence for JMP that allows for the interpretation of the character following it to be properly handled. &amp;nbsp;Therefore \!" will allow the double quote character to be embedded in the string&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
List = {"Item1", "Item2"};
string = "Select(\!"" || List[1] || "\!")";
Show( Parse( string ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Jun 2017 09:56:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Parse-command-to-output-quoted-string/m-p/40098#M23470</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-06-08T09:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Parse() command to output quoted string</title>
      <link>https://community.jmp.com/t5/Discussions/Parse-command-to-output-quoted-string/m-p/40113#M23483</link>
      <description>&lt;P&gt;Another way to embed double quotes is to use the \[...]\ delimiters around the string. &amp;nbsp;I'm also using evalinsert() to evaluate List[1], using ^ characters around it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;string2 = evalinsert("\[Select("^List[1]^")]\");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Jun 2017 14:17:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Parse-command-to-output-quoted-string/m-p/40113#M23483</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2017-06-08T14:17:33Z</dc:date>
    </item>
  </channel>
</rss>

