in reply to TK, seting value of a variable.

Hi,

When you type something into $proxyentry it sets the value in $o1.

Then somewhere set $proxystatus = $oi and that will set the value of $chkproxyon

I would have a different variable for $chkproxyoff, unlees you want $chkproxyoff and $chkproxyon to be the same.

J.C.

Replies are listed 'Best First'.
Re^2: TK, seting value of a variable.
by Anonymous Monk on Dec 15, 2010 at 19:05 UTC
    Sorry $o1 should be $oi
Re^2: TK, seting value of a variable.
by papaismurf (Novice) on Dec 15, 2010 at 20:20 UTC
    Thx for you help, but i still have the same problem.
    my $labelproxy = $frameproxy -> Label(-text=>"\nProxy:") -> pack(); my $proxyentry = $frameproxy -> Entry(-width => 23,-textvariable=>\$oi +) -> pack(); $proxystatus = $oi; my $chkproxyon = $frameproxy -> Radiobutton(-text=>"ON",-selectcolor = +> green, -value=>\$proxystatus, -variable=>\$radio) -> pack(); my $chkproxyoff = $frameproxy -> Radiobutton(-text=>"OFF",-selectcolor + => green, -value=>"semproxy", -variable=>\$radio) -> pack();
    When i print $radio, choosing "off" its ok, print in screen "semproxy", but when i choose ON, instead print my variable "$proxystatus" i got "REF(0x9e0d730)"

      Maybe you shouldn't use references in settings then? Or opposite, dereference the returned value?