I am having a problem understanding what is happening when I set xlateOutVal.
I have a variable that I am using to compare values. It starts out as a single character field, using special characters.
To compare certain special characters I am putting a “” before it in the variable. For instance input field is “]” and the variable @lbracket is “]”.
The variable is passed into a tcl frag and I use it in a “$” variable.
When I use the following the output field is set correctly “[“:
set xlateOutVal $field1
When I use the following I get “” in the output field.
set xlateOutVal
I can echo both the $xlateOutVal and $field1 and they appear the same – “]”.
I thought that the list context was the proper way to do it.
I can fix the field, I just want to know why the non-list method appears as “]”?
Thanks for any explaination you can give.
-Walter Ericson
St Lukes Hospital