Re: Variable question
- To: mathgroup at smc.vnet.net
- Subject: [mg92512] Re: [mg92468] Variable question
- From: Curtis Osterhoudt <cfo at lanl.gov>
- Date: Thu, 2 Oct 2008 04:36:00 -0400 (EDT)
- Organization: LANL
- References: <200810012229.SAA09621@smc.vnet.net>
- Reply-to: cfo at lanl.gov
Perhaps
v = ToExpression[var]
is what you want.
C.O.
On Wednesday 01 October 2008 16:29:47 Johney at giganews.com wrote:
> I have the following test code
>
> c = 3
> var = "c"
> v = StringTake[var, {1}]
> v
>
>
> v is showing up as c but I want it to show up as 3. Is there a way to do this?
>
> Thanks
>
>
>
--
==========================================================
Curtis Osterhoudt
cfo at remove_this.lanl.and_this.gov
PGP Key ID: 0x4DCA2A10
Please avoid sending me Word or PowerPoint attachments
See http://www.gnu.org/philosophy/no-word-attachments.html
==========================================================
- References:
- Variable question
- From: Johney@giganews.com
- Variable question