I am scratching my head over an in-line one-liner in an Xlate.
Works fine from the tcl prompt – to wit:
tcl>echo $x
123 / qwe
tcl>set z [string range $x 0 [expr [string first / $x] – 1]]
123
However, within an Xlate I see the following error:
QDX_Tcl_SplitList({20000 Units ) failed: unmatched open brace in list
(xlateInVals = 20000 Units / 200 mL) <-- not part of error message
In-line code:
set xlateOutVals [string range $xlateInVals 0 [expr [string first / $xlateInVals] – 1]]
This sort of problem makes me feel young again.