ahh, I've got it Thanks anyway. Btw, how can I write a yes/no choice? For example, if 1 is selected, it is yes and 0 is selected, it is no. How can I do that to apply in my script?
global selected, answ
if { selected == 1 } { set answ "yes" }
elseif { selected == 0 } { set answ "no" }
is this what you mean or am I not getting your point? In other languages you can use a boolean var, I'm not sure if you can use it in TCL, but my code will work just fine.
Grtz