CodeItBetter Programming Another VB Programming Blog

How to check which option button is selected in a group of option buttons with one line of code

Posted on January 4, 2009
1
2
3
4
5
6
7
8
'Controls - How to check which option button is selected in a group of option buttons with one line of code
' A module-level variable
Dim optFrequencyIndex As Integer
 
Private Sub optFrequency_Click(index As Integer)
    ' Remember the last button selected.
    optFrequencyIndex = index
End Sub
Filed under: Controls Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.