Substitution error?
- From: "Eduardo Peņa" <epena@xxxxxxxxxxxxxxxx>
- Date: Tue, 31 May 2005 17:58:57 +0200
Hi,
I have a top frame followed by a loop:
*******************************************
set topf [frame $frame.topf]
for {set i 0} {$i < 10} {incr i} {
set a$i [TitleFrame $topf.a$i -text "Title $i"]
pack $a$i
}
*******************************************
But i have an error:
can´t read "a": no such variable while executing pack $a$i
My questions are:
How i can pack this frames/titleframes in a loop "n" times?
What happend with a for-loop in local use of variables in frames/subframes?
Thanks in advance.
Edu
.
- Follow-Ups:
- Re: Substitution error?
- From: John Seal
- Re: Substitution error?
- From: Bryan Oakley
- Re: Substitution error?
- Prev by Date: Re: tcltest Tk Applications
- Next by Date: Re: Problems with autoexpect
- Previous by thread: Problems with autoexpect
- Next by thread: Re: Substitution error?
- Index(es):
Relevant Pages
|