Checkboxes:
To get the values of the checked checkboxes, you can use:
But if there are a lot of them, then the if script has to grow to the same number as well (the number of checkboxes adjusts automatically according to how many files there are).
I tried
but that method doesn't work. I couldn't find a way to solve it online, so I'm asking whether there are any VBS experts who can solve this?
[ Last edited by zh159 on 2007-3-24 at 04:32 PM ]
<input type="checkbox" id="file1" name="file1" value="FileName1">
<input type="checkbox" id="file2" name="file2" value="FileName2">
<input type="checkbox" id="file3" name="file3" value="FileName3">
<input type="checkbox" id="file4" name="file4" value="FileName4">
To get the values of the checked checkboxes, you can use:
if file1.checked then MsgBox file1.value
if file2.checked then MsgBox file2.value
if file3.checked then MsgBox file3.value
if file4.checked then MsgBox file4.value
But if there are a lot of them, then the if script has to grow to the same number as well (the number of checkboxes adjusts automatically according to how many files there are).
I tried
for i = 1 to Num
if file(i).checked then MsgBox file(i).value)
next
but that method doesn't work. I couldn't find a way to solve it online, so I'm asking whether there are any VBS experts who can solve this?
[ Last edited by zh159 on 2007-3-24 at 04:32 PM ]

