Hello,
I have been trying to figure out how I can load my radio buttons into an array then loop through them to see which is checked but am having problems.
I made a radio button variable equal to a value in the radio button array (a different radio button depening on the index value via the loop) but it keeps giving me the "Object reference not set to an instance of an object" error.
Can anyone help?
Here is a snipet of the code..
Dim RadioButtonArray() As RadioButton = {rad1, rad2, rad3, rad4}
Do Until i = intcount1
RadioButton = RadioButtonArray(i)
If RadioButton.Checked = True Then
do some suff...
End If
i = +1
Loop
Thanks!!
I have been trying to figure out how I can load my radio buttons into an array then loop through them to see which is checked but am having problems.
I made a radio button variable equal to a value in the radio button array (a different radio button depening on the index value via the loop) but it keeps giving me the "Object reference not set to an instance of an object" error.
Can anyone help?
Here is a snipet of the code..
Dim RadioButtonArray() As RadioButton = {rad1, rad2, rad3, rad4}
Do Until i = intcount1
RadioButton = RadioButtonArray(i)
If RadioButton.Checked = True Then
do some suff...
End If
i = +1
Loop
Thanks!!