hi there,
I'm working with HTA's and vbscripting, and i've managed to get a list of all the text files from a parent folder defined by the user and displayed the information on the HTA window with a checkbox before each of the lines.
i want the user to choose the files to be processed but cannot seem to access the checkbox values... following is the loop i've used to define the checkbox...
as you can see the checkbox's will be called
PrintCheckbox0
PrintCheckbox1
PrintCheckbox2 and so on...
and there is a button at the end which calls a sub called processit ... i can't pass values to the sub either using this method. any help would be greatly appreciated.
thanks,
I'm working with HTA's and vbscripting, and i've managed to get a list of all the text files from a parent folder defined by the user and displayed the information on the HTA window with a checkbox before each of the lines.
i want the user to choose the files to be processed but cannot seem to access the checkbox values... following is the loop i've used to define the checkbox...
Code:
For i = 0 To UBound(aFiles) strHTML = strHTML & "File " & i+1 & " - <input type=checkbox name=PrintCheckbox" & i & "value=1>" & VbTab & aFiles(i) & "<br>" Next DataArea.InnerHTML = strHTML DataArea2.innerHTML = "<button type=submit onclick=processit> Process Checked Items... </button>"
PrintCheckbox0
PrintCheckbox1
PrintCheckbox2 and so on...
and there is a button at the end which calls a sub called processit ... i can't pass values to the sub either using this method. any help would be greatly appreciated.
thanks,