VARIABLES

# Thread: VARIABLES

1. Junior Member
Join Date
Dec 1969
Posts
26

## VARIABLES

Hekko everyone.<BR>a question: how do i put in the variable name to be generated from other two variables&#039; values?<BR>which is:<BR>a = "tex"<BR>b = "t1"<BR>text1 = "something else"<BR>and instead of putting in<BR>so by putting in the values of &#039;a&#039; and &#039;b&#039; i want to get the value of &#039;text1&#039; variable instead.<BR><BR>Does anybody know? i did this before, but cannot remember even where to look now.<BR><BR>Thanks in advance.<BR>Dmitri<BR>

2. Senior Member
Join Date
Dec 1969
Posts
96,118

## It's PROBABLY a very bad idea...

...because it *probably* means you are doing something a very inefficient way.<BR><BR>But if you insist...<BR><BR>a = "tex"<BR>b = "t1"<BR>eval( a + b + &#039; = "something else"&#039; );<BR><BR>Yuck. I hope you rethink this and find a better way.<BR><BR>

3. Junior Member
Join Date
Dec 1969
Posts
26

## RE: It's PROBABLY a very bad idea...

i already found another way of doing it.<BR>But thanks a lot. i might need this in the future.<BR><BR>the example i gave had nothing to do with what i actually needed, this was just a simple example so that people understand what i basically want.

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•