Homepage › Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › Can I use a variable within the Path? › Reply To: Can I use a variable within the Path?
November 3, 2005 at 9:48 pm
#57579
Rentian Huang
Participant
set val [datget [xpmfetch $xlateId @obx5] VALUE]
set cnt [datget [xpmfetch $xlateId @ctr] VALUE]
incr cnt -1
set valAddr {1(0).1(%g1).1(0).OBX.00573.[0]}
echo g1).1($cnt
regsub {g1).(0} $valAddr “g1).1($cnt” valAddr
xpmstore $xlateId $valAddr c $val
the value of $cnt just can NOT get into its right place. Even “echo g1).1($cnt ” yields the correct result. but after the regsub, $cnt becomes 0 again.
I m out of idea…
Sam 😮