Jump to content

Problems generating dynamic checkboxes


memnon
 Share

Recommended Posts

Hello

i have a array, the array is filled with dnsnames and is automaticle created via a search/ping function.

i now want to get this computernames in a gui (what works already), but i do not know how i get back the state of the generated checkboxes, as you can see below...

for $i=0 to 49

$down=$down+25

if $rechner[$i]<>"0"then

GuiCtrlCreateCheckbox($rechner[$i], 10, $down, 100, 30)

endif

next

normaly i would use a variable for the checkbox f.e. $check=GuiCtrlCreateChechbox,.... and then i would use GUICtrlRead($check) to read the value of the checkbox - in my case i dont know how this could be done - i need automaticle generated variables in this loop to get the states of all checkboxes what are generated...

das beste Windows Support Forum: Windows 2000 Helpline und tschüss den WindowsfehlernProgrammieren: Autoit 3 - wer braucht noch VBS ?!Programmieren: Autoit 3 Forum?

Link to comment
Share on other sites

maybe like this

Dim $check[55]

for $i=0 to 49

$down=$down+25

if $rechner[$i]<>"0"then

$checf[$i] = GuiCtrlCreateCheckbox($rechner[$i], 10, $down, 100, 30)

endif

next

******not tested but the idea does work

8)

thanks valuater, sometimes i am to stupid to see the easiest things... ;)

das beste Windows Support Forum: Windows 2000 Helpline und tschüss den WindowsfehlernProgrammieren: Autoit 3 - wer braucht noch VBS ?!Programmieren: Autoit 3 Forum?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...