From: Keith on 18 Apr 2010 21:05 I use the following routine to extract and display items in a label widget: Tcl 8.5 lassign [split $qpl(mem) ,] foo fo(0) fo(1) fo(2) fo(3) set qpl(mem) "$fo(0)% $fo(1) Systems $fo(2) Sites $fo(3) Channels" .... label $t.1.a -text "Radio Memory Used: $qpl(mem)" However when $qpl(mem) is displayed with $t.1.a it includes the curly brackets 5% {2 Systems} {2 Sites} {3 Channels} how do I eliminate the brackets? TIA.
From: Keith on 18 Apr 2010 21:11 Never mind I figured it out and I included the wrong line from the label. sigh... On Sun, 18 Apr 2010 18:05:57 -0700, Keith <kilowattradio(a)use-reply-to.invalid> wrote: >I use the following routine to extract and display items in a label >widget: > >Tcl 8.5 > >lassign [split $qpl(mem) ,] foo fo(0) fo(1) fo(2) fo(3) >set qpl(mem) "$fo(0)% $fo(1) Systems $fo(2) Sites $fo(3) Channels" >... >label $t.1.a -text "Radio Memory Used: $qpl(mem)" > >However when $qpl(mem) is displayed with $t.1.a it includes the curly >brackets > >5% {2 Systems} {2 Sites} {3 Channels} > > >how do I eliminate the brackets? > >TIA.
|
Pages: 1 Prev: Best Way to mask input into a entry box Next: using libusb from TCL |