• To: mathgroup at smc.vnet.net
• From: Dr Bob <drbob at bigfoot.com>
• Date: Sun, 9 Mar 2003 18:39:54 -0500 (EST)
• References: <3E6BA6F4.2030101@schmieder-laher.de>
• Sender: owner-wri-mathgroup at wolfram.com

```That's the result I get as well.  There's no way to change c without
changing s, with that initial value of s --- and I was restricting myself
to that.

It can be done easily if s = {"a", "b", "c", "d", "e"}, however.

ss = {"a", "b", "c", "d", "e"}
dd = {1, 5, {3, 4}, 7, abc, {0.1, 0.001}, 3.1415}
ToExpression[ss[[3]] <> "=" <> ToString@dd[[4]]];
c
ss

{"a", "b", "c", "d", "e"}
{1, 5, {3, 4}, 7, abc, {0.1, 0.001}, 3.1415}
7
{"a", "b", "c", "d", "e"}

Bobby

On Sun, 09 Mar 2003 21:41:24 +0100, Friedrich Laher <mathefritz@schmieder-
laher.de> wrote:

> Hi,
> do we use different versions of mathematica?
>
> ss = {a, b, c, d, e}
> dd = {1, 5, {3, 4}, 7, abc, {0.1, 0.001}, 3.1415}
> ToExpression[ToString@ss[[3]] <> "=" <> ToString@dd[[4]]];
>
> for me results in (ref. attachment)
>
> and
> then an assignement to c with another value is no longer possible
> with
>
> ToExpression[ToString@ss[[3]] <> "=" <> ToString@dd[[4]]];
>
> Best regards
> F.
>

--
majort at cox-internet.com
Bobby R. Treat

```

• Prev by Date: Re: Re: How to convert string to variable name
• Next by Date: Re: RE: nth differences
• Previous by thread: Re: Running ssh in Mathematica
• Next by thread: EllipticTheta error message