set var $xlateInvals
set xlateOutVals “[string range $var 0 2] [string range $var 3 end]”
You’re playing with fire here; xlateOutVals should always be a list!
So use this instead:
set var $xlateInvals
set xlateOutVals [list [string range $var 0 2] [string range $var 3 end]]
Can’t argue with the rest though…
Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands