Sorry for this late reply. I put this in a CALL action:
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 😮