<?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: Remove &amp;quot;&amp;quot; from the list in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-list/m-p/518148#M74436</link>
    <description>&lt;P&gt;In these cases (if different values are needed for display and internal processing) I like to use associative array like you can see in the below example.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

site_aa = Associative Array( {{"Site 1", 1}, {"Site 2", 2}} );

New Window( "test",
	&amp;lt;&amp;lt;modal,
	ht = Check Box( site_aa &amp;lt;&amp;lt; get keys ), 
		
	Button Box( "Ok", get = ht &amp;lt;&amp;lt; get selected() )
);

site_lst = {};
For Each( {value}, get, Insert Into( site_lst, site_aa[value] ) );
Show( site_lst );&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 06 Jul 2022 17:49:35 GMT</pubDate>
    <dc:creator>Georg</dc:creator>
    <dc:date>2022-07-06T17:49:35Z</dc:date>
    <item>
      <title>Remove "" from the list</title>
      <link>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-list/m-p/517724#M74402</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am trying to remove quotation mark "" from the list.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The sitenum should have following results = {1, 2} no quotation mark. Any suggestions?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;new window("", modal,
		ht = checkbox({"1","2"}),
		
			Buttonbox("Ok",
				get = ht &amp;lt;&amp;lt; get selected();
				
			)
		);
	
sitenum ={};

Insert Into( sitenum, get);
	&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 17:03:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-list/m-p/517724#M74402</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2023-06-09T17:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Remove "" from the list</title>
      <link>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-list/m-p/517803#M74404</link>
      <description>&lt;P&gt;Does this do what you need?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;new window("", modal,
		ht = checkbox({"1","2"}),
		
			Buttonbox("Ok",
				get = ht &amp;lt;&amp;lt; get selected();
				
			)
		);
	
sitenum ={};

for(i=1,i&amp;lt;=nitems(get),i++,
	get[i]=num(get[i])
);



Insert Into( sitenum, get);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Jul 2022 15:45:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-list/m-p/517803#M74404</guid>
      <dc:creator>HadleyMyers</dc:creator>
      <dc:date>2022-07-05T15:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Remove "" from the list</title>
      <link>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-list/m-p/517826#M74407</link>
      <description>&lt;P&gt;If you have JMP16 and can be sure that the options will be numeric (which will be converted to strings), you could use Transform Each&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

New Window("test",	&amp;lt;&amp;lt; modal,
	ht = Check Box({"1", "2"}), 
		
	Button Box("Ok",
		get = ht &amp;lt;&amp;lt; get selected();
	)
);

sitenum = Transform Each({str}, get, Num(str));	&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In general looping over the &lt;EM&gt;get&lt;/EM&gt; list while converting the strings to numeric using &lt;STRONG&gt;Num()&lt;/STRONG&gt; and adding them to a list in some way should work.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 16:20:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-list/m-p/517826#M74407</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-07-05T16:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Remove "" from the list</title>
      <link>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-list/m-p/518148#M74436</link>
      <description>&lt;P&gt;In these cases (if different values are needed for display and internal processing) I like to use associative array like you can see in the below example.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

site_aa = Associative Array( {{"Site 1", 1}, {"Site 2", 2}} );

New Window( "test",
	&amp;lt;&amp;lt;modal,
	ht = Check Box( site_aa &amp;lt;&amp;lt; get keys ), 
		
	Button Box( "Ok", get = ht &amp;lt;&amp;lt; get selected() )
);

site_lst = {};
For Each( {value}, get, Insert Into( site_lst, site_aa[value] ) );
Show( site_lst );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Jul 2022 17:49:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-list/m-p/518148#M74436</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2022-07-06T17:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Remove "" from the list</title>
      <link>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-list/m-p/518723#M74480</link>
      <description>&lt;P&gt;and yet another solution.&lt;/P&gt;
&lt;P&gt;In this case, I don't get rid of the quotes, I just use the list item as a number rather than a string.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;new window("", modal,
		ht = checkbox({"1","2"}),
		
			Buttonbox("Ok",
				get = ht &amp;lt;&amp;lt; get selected();
				
			)
		);
	
sitenum ={};

Insert Into( sitenum, get);
print(sitenum);

site=num(sitenum[1]);
print(site);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Jul 2022 18:31:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-list/m-p/518723#M74480</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2022-07-07T18:31:33Z</dc:date>
    </item>
  </channel>
</rss>

