Dynamic Variable Names
Posted on 2003-10-28
Is it possible to take the values of two variables, and put them together to form a third variable name?
For instance, lets say I have the following variables:
(I am leaving off quotes to prevent problems with the form)
animalA = cat
animalB = dog
animalC = fish
animalD = bird
can I then add two values together to crreate a third variable name?
For instance, can I add animalA & animalC to create the variable named catfish, which according to the list below has a value of 12?
catfish = 12
birddog = 13
catdog = 14