Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2000
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2000

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: ToString[Hold[a]] gives Hold[a]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg21806] Re: [mg21759] ToString[Hold[a]] gives Hold[a]
  • From: Hartmut Wolf <hwolf at debis.com>
  • Date: Fri, 28 Jan 2000 01:45:56 -0500 (EST)
  • Organization: debis Systemhaus
  • References: <200001280356.WAA10765@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Bill Marks schrieb:
> 
> How to convert to string a symbol that already has a value?
> 
> One way would be to find  a wrapper for which
> ToString[Wrapper[a]]   ->  a
> 
> For example
> a = 3;
> ToString[Hold[a]] -> Hold[a]
> 
 
Bill, you only nearly missed it:

In[1]:= a = 3
Out[1]= 3

In[2]:= ToString[Unevaluated[a]]
Out[2]= "a"

Kind regards, Hartmut


  • Prev by Date: Re: save notebook without output
  • Next by Date: Re: How to Break[] out of nested loops?
  • Previous by thread: ToString[Hold[a]] gives Hold[a]
  • Next by thread: Improvements