<?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: from a name to a string in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/from-a-name-to-a-string/m-p/926055#M108406</link>
    <description>&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/18.2/#page/jmp/expression-functions.shtml?os=win&amp;amp;source=application#ww4986157" target="_blank" rel="noopener"&gt;Head Name(expr)&lt;/A&gt;&amp;nbsp;?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

ms = Expr(x);
Head Name(ms); // "x"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jan 2026 05:59:41 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2026-01-26T05:59:41Z</dc:date>
    <item>
      <title>from a name to a string</title>
      <link>https://community.jmp.com/t5/Discussions/from-a-name-to-a-string/m-p/926016#M108404</link>
      <description>&lt;P&gt;To remove a symbol, I can write:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;y=6;
mySymbol = Expr(y);
//Delete Symbols("y"); 
////Delete Symbols(y); // &amp;lt;- easy
Eval(Eval Expr(Delete Symbols(Expr(Name Expr(mySymbol)))));
Show symbols()&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If I need to remove a symbol from a namespace,&amp;nbsp;I need the string of the symbol:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
nsref = New Namespace(
	"ns"
);
ns:x = 20;

mySymbol = Expr( x );

//nsref &amp;lt;&amp;lt; Remove("x")

Eval(
	Substitute(
			Expr(
				nsref &amp;lt;&amp;lt; Remove( _sym_ )
			),
		Expr( _sym_ ), Substitute( Expr( Char( __sym__ ) ), Expr( __sym__ ), Name Expr( mySymbol ) )
	)
);


s = NameExpr( mySymbol );  
str = Char(s) );  // Name not defined        
Show( str );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the right syntax for&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Char(s)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;?&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jan 2026 20:27:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/from-a-name-to-a-string/m-p/926016#M108404</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2026-01-25T20:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: from a name to a string</title>
      <link>https://community.jmp.com/t5/Discussions/from-a-name-to-a-string/m-p/926055#M108406</link>
      <description>&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/18.2/#page/jmp/expression-functions.shtml?os=win&amp;amp;source=application#ww4986157" target="_blank" rel="noopener"&gt;Head Name(expr)&lt;/A&gt;&amp;nbsp;?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

ms = Expr(x);
Head Name(ms); // "x"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2026 05:59:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/from-a-name-to-a-string/m-p/926055#M108406</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2026-01-26T05:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: from a name to a string</title>
      <link>https://community.jmp.com/t5/Discussions/from-a-name-to-a-string/m-p/926069#M108408</link>
      <description>&lt;P&gt;many thanks,&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2026 07:16:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/from-a-name-to-a-string/m-p/926069#M108408</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2026-01-26T07:16:10Z</dc:date>
    </item>
  </channel>
</rss>

