I have a couple dozen checkboxes and their states are saved in a binary string.
It looks like eval and execute are only for transferring/computing values, rather than creating a variable name.
The checkboxes are numbered, following the format of $chkBox1, $chkBox2, etc.
I was hoping to be able to do loop through and be able to take the string "$chkBox" and append the current value the loop is on in, then set if it is checked with GUICtrlSetState.
The way I tried it was: GUICtrlSetState(Eval("$chkBox" & $currentID),$GUI_UNCHECKED)
Is there a way to do that with Eval/Execute and I'm just doing it incorrectly or is it not possible by that method or any other?
It looks like eval and execute are only for transferring/computing values, rather than creating a variable name.
The checkboxes are numbered, following the format of $chkBox1, $chkBox2, etc.
I was hoping to be able to do loop through and be able to take the string "$chkBox" and append the current value the loop is on in, then set if it is checked with GUICtrlSetState.
The way I tried it was: GUICtrlSetState(Eval("$chkBox" & $currentID),$GUI_UNCHECKED)
Is there a way to do that with Eval/Execute and I'm just doing it incorrectly or is it not possible by that method or any other?