Newbie Programming question
- To: mathgroup at smc.vnet.net
- Subject: [mg53436] Newbie Programming question
- From: Kerry Kim <kjkim at u.washington.edu>
- Date: Tue, 11 Jan 2005 01:32:02 -0500 (EST)
- Organization: University of Washington
- Sender: owner-wri-mathgroup at wolfram.com
Hello, Is there any way in Mathematica to store/assign a value to a variable whose name is in a string? In other words something like this: i = 17; foo="var" + ToString[i]; SomeFunctionThatConvertsStringToSymbolName[foo] = 17; and then assign some value (say, 23) to the variable whose name is contained in the foo string? (i.e. var17=23) Thanks!
- Follow-Ups:
- Re: Newbie Programming question
- From: Sseziwa Mukasa <mukasa@jeol.com>
- Re: Newbie Programming question