What is the syntax to compare a selected item in a radio list box with a value?

What is the syntax to compare a selected item in a radio list box with a value?

for an if statement

If (rblPart.SelectedItem Is "MAKE PART") Then
Weller0123Asked:
Who is Participating?
 
daffodilsCommented:
Use
rblPart.SelectedIndex.Value ...if you want to compare with "MAKE PART" with the RadioBurronList item's Value

Or
rblPart.SelectedIndex.Text ...if you want to compare with "MAKE PART" with the RadioBurronList item's Text
0
 
AerosSagaCommented:
If they each have specific names

If Me.Myrdo1.Checked Then
0
 
Weller0123Author Commented:
There is no checked method in a RadioButtonList.
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Weller0123Author Commented:
I see...

Thanks
0
 
Rodney HelsensCommented:
The SDK is great for these type of questions. If you are eager to learn .NET, it will prove to be an indispensible resource.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconradiobuttonlistwebservercontrol.asp

“Give a man a fish; you have fed him for today.  Teach a man to fish; and you have fed him for a lifetime”—Author unknown
0
 
daffodilsCommented:
RadioButtonList is a List Control.. that's why they don't have a Checked property.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.