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
- References:
- ToString[Hold[a]] gives Hold[a]
- From: Bill Marks <bmarks@helix.nih.gov>
- ToString[Hold[a]] gives Hold[a]