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 index & not when I pass index indirectly.
Please help!
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 index & not when I pass index indirectly.
Please help!