Author Topic: Check box control not responding to a change in variable  (Read 244 times)

I changed the topic because the old one didn't really matter since I changed the test to do strcmp instead of !$= and it works alright now.

New problem:  I am trying to get a check box to check and uncheck itself when a variable is changed.  In the past, the check box controls I have used had a variable as a part of an array, which I would then export.  When that file is executed, the check box control successfully changes to reflect the value of the variable.

Now, I have only one check box to worry about, and it's variable is $servercommandgui_FEAE
That variable is set to 0 whenever something is about to possibly change.

However, when I have a line of code that says
$servercommandgui_FEAE = 1;
the check box remails blank.
I can echo($servercommandgui_FEAE);
which displays a 1
I then check the box manualy, and do the echo again
1
Then I uncheck the box manually and echo yet again
0

I am really confused since before, changing the variable would always successfully change any check box control that had that variable.  Is there an alternate way I can set a check box?
« Last Edit: June 12, 2011, 01:05:01 PM by Nexus »

Ok, I can do checkboxname.setvalue(1); to change it.

But I didnt need to name the checkboxes that were part of arrays.  They just changed when the exported array was executed.  Why is this different?