Problem with exec command



I have a menu item that uses -command {exec $webaddress}
however wish complains about no such variable
$webaddress exists. What do I need to do to get
the program to recoginize the variable?
I have written other tcl/tk programs and used
set webaddress "blah blah"
-command {exec $webaddress} and it works fine.
The program I am trying to modify uses Bwidget if
that makes a difference.

TIA.


.



Relevant Pages

  • Re: Problem with exec command
    ... however wish complains about no such variable ... $webaddress exists. ... the program to recoginize the variable? ... set webaddress "blah blah" ...
    (comp.lang.tcl)
  • Re: Problem with exec command
    ... however wish complains about no such variable ... $webaddress exists. ... the program to recoginize the variable? ... set webaddress "blah blah" ...
    (comp.lang.tcl)
  • Re: Problem with exec command
    ... Cameron Laird wrote: ... $webaddress exists. ... set webaddress "blah blah" ... $webaddress wouldn't substitute in braces ... ...
    (comp.lang.tcl)