Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Eval control ID variable

$
0
0
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?

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>