teblack
Programmer
- Apr 30, 2004
- 45
I have a page that builds a list of employees with a radio button attached to each row. I have written a vbscript routine to spin through the list to make sure that at least one row has been checked. I'm trying to get the length value of the radio button called "selected", so that I know how many occurences there are in the list. But I'm having problems with the len command, and not sure how to get it fixed.
If I replace the "len(....)" with a value of like 6, then it works just fine, but I won't know the number of rows for each displayed page because they can be different. Any help or thoughts would be greatly appreciated.
Thanks in advance for any help with this......
TBlack -
Code:
Sub checksbox_onclick
Dim x
For x = 0 to len(UserSelect_Form.selected.value)
If UserSelect_Form.elements(x).checked = True Then
MsgBox document.UserSelect_Form.elements(x).value
End If
Next
End Sub
If I replace the "len(....)" with a value of like 6, then it works just fine, but I won't know the number of rows for each displayed page because they can be different. Any help or thoughts would be greatly appreciated.
Thanks in advance for any help with this......
TBlack -