Forum Discussion

Ger_Hackett_323's avatar
Ger_Hackett_323
Icon for Nimbostratus rankNimbostratus
Sep 19, 2012

Increment Array Element

Hi,   Is there any neat way to increment any array element. At the moment I’m doing:     set TempVar $::MyArray($some_index)   incr TempVar   set ::MyArray($some_index) $TempVar   ...