MathGroup Archive 2000

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

Search the Archive

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

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