| |
takeda kozo
Posts: 83
Score: 0
Joined: 11/9/2005
Status: offline
|
Hi guys, does anyone know how I can use "checkbox" button names in a loop ? The below code works fine (for 2 hotfixes) , but I am checking 44 hotfixes, and I dont want to have to type out code 44 times :( Is there a way to look through "all checked boxes" ? I am new to HTA/HTML scripting, and really not sure about this ======================= Extract from HTML Section: <input type="checkbox" name="KB921883" checked="yes">KB921883 (MS06-040) <input type="checkbox" name="KB899589" checked="yes">KB899589 (MS05-046) ======================= Extract from VBS Section If KB921883.Checked Then ReDim Preserve arrHotFixes(intCounter) arrHotFixes(intCounter) = KB921883.Name intCounter = intCounter + 1 End If If KB899589.Checked Then ReDim Preserve arrHotFixes(intCounter) arrHotFixes(intCounter) = KB899589.Name intCounter = intCounter + 1 End If ======================= Is there something available like: For each (checkbox on this form) If Checkbox.Name.Checked Then Blah Blah Blah Next (Sorry about the example, but just wanted to try and get across my meaning) :)
|
|