TCL variable name is a variable value
Posted on 2011-05-11
I have a TCL variable. But part of its name is the value of anotehr dynamic variable. For instance, the variable "Bus_Route_$Number" represent Bus route number. But the Number itself is a variable, could be 1,2,3 and etc. It is either from environment variable or runtime execution result of another part of program. Now if I want to retrieve the value of Bus_Route_$Number, how to specify it. I tried
All did not work.