Thanks Bob. Indeed I was mixing up the langauges. I'm using Codewarrior IDE tcl shell. So "change value" was IDE provided command. Thanks for directing me to use "set" instead.
I have a simple code like this. I'm new to tcl/tk world.
This works:
change v array_1[0] 10
But this doesn’t work:
set x 1
change v array_1[$x] 10
Note : array_10[20] is an array C langauge array.
Basically I want to change the value of an array. Why it works when i pass absolute value as an...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.