Re: Using foreach loop to create radiobutton menu
- From: aj@xxxxxxxxxx
- Date: 28 Apr 2006 07:32:46 -0700
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"
.
- Follow-Ups:
- Re: Using foreach loop to create radiobutton menu
- From: Bryan Oakley
- Re: Using foreach loop to create radiobutton menu
- References:
- Using foreach loop to create radiobutton menu
- From: aj
- Re: Using foreach loop to create radiobutton menu
- From: Bryan Oakley
- Using foreach loop to create radiobutton menu
- Prev by Date: Re: Using foreach loop to create radiobutton menu
- Next by Date: Re: handling errors through catch
- Previous by thread: Re: Using foreach loop to create radiobutton menu
- Next by thread: Re: Using foreach loop to create radiobutton menu
- Index(es):