Hi everyone:
Here is my problem:
I generate variables of the type: a1 a2 a3...a"n"
I do it in a "for" loop
The problem is when I want to access to the values contained in this variables (again in another "for" loop):
I can't access to its values using $a$i (been "i" another varible that its changing in the loop) because it says that $a doesn't exists. Off course it doesn't exists , I want to access a1 a2...an
I've tried with $a($i) and similar things, but I don't find the way.
I'm new programming in TCL.
If someone can help I'll be very thankful.
Here is my problem:
I generate variables of the type: a1 a2 a3...a"n"
I do it in a "for" loop
The problem is when I want to access to the values contained in this variables (again in another "for" loop):
I can't access to its values using $a$i (been "i" another varible that its changing in the loop) because it says that $a doesn't exists. Off course it doesn't exists , I want to access a1 a2...an
I've tried with $a($i) and similar things, but I don't find the way.
I'm new programming in TCL.
If someone can help I'll be very thankful.