Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking Option Buttons

Status
Not open for further replies.

MattSmithProg

Programmer
Sep 9, 2001
76
AU
Hi all,

I have been trying to find a fast/easy/efficient way to determine if a series of option buttons have been selected or not.

At present I check each one individually but I am looking to find if there is a way I can pass each group of option buttons to a function and see if the user has entered either Yes or No.

I have thought about Tags to check as I use this for text boxes etc. However, with option buttons there will always be a false value.

Any thoughts/comments or suggestions would be most welcome.

Thanks

Matt Smith No two nulls are the same
 
Could you make a controll array with your option buttons and use some code like this

Private Sub Option1_Click(Index As Integer)
Select Case Index
Case 0
MsgBox "Yes code", vbInformation
Case 1
MsgBox "No code", vbInformation
Case 2
MsgBox "Yes code", vbInformation
Case 3
MsgBox "No Code", vbInformation
End Select
End Sub


E
 
I like the idea of a control array.

I will give it a go.

Thanks

Ps I would give you a star but my browser doesn't support java scripting No two nulls are the same
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top