Re: Using foreach loop to create radiobutton menu
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: Using foreach loop to create radiobutton menu

From: <aj@bookac.com>
Date: Fri Apr 28 2006 - 16:32:46 CEST

I appreciate the significance of your answer, however, my problem
persists. Here is the updated code...

  menubutton range -text "Set Range" -underline 0 -bd 0 -menu {
        foreach range {1 2 3 4 5 6 7 8 9 10} "
          radiobutton range$range -label $range -command {puts hello}
        "
  }

When this code executes, I get this error:

 "...... - can't read "range": no such variable"
Received on Sun Apr 30 03:30:36 2006