• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 351
  • Last Modified:

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
0
Weller0123
Asked:
Weller0123
1 Solution
 
AerosSagaCommented:
If they each have specific names

If Me.Myrdo1.Checked Then
0
 
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
 
Weller0123Author Commented:
There is no checked method in a RadioButtonList.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now