MathGroup Archive 2005

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

Search the Archive

Re: Newbie Programming question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg53455] Re: Newbie Programming question
  • From: Carlo Teubner <"See signature. "@example.com>
  • Date: Wed, 12 Jan 2005 03:41:31 -0500 (EST)
  • Organization: Oxford University, England
  • References: <crvtn6$144$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

In[1]:=
i = 17;
foo = StringJoin["var", ToString[i]];
  (* You can't use + to join strings together. *)
Evaluate[Symbol[foo]]=17;

In[3]:=
var17

Out[3]=
17

HTH,

Carlo


  • Prev by Date: Inverse polynomials
  • Next by Date: Re: Strange installation problem
  • Previous by thread: Re: Newbie Programming question
  • Next by thread: Re: Newbie Programming question