Solved

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

Posted on 2004-08-13
6
345 Views
Last Modified: 2010-04-07
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
Comment
Question by:Weller0123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 17

Expert Comment

by:AerosSaga
ID: 11795343
If they each have specific names

If Me.Myrdo1.Checked Then
0
 
LVL 8

Accepted Solution

by:
daffodils earned 500 total points
ID: 11795418
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
 

Author Comment

by:Weller0123
ID: 11795435
There is no checked method in a RadioButtonList.
0
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 

Author Comment

by:Weller0123
ID: 11795446
I see...

Thanks
0
 
LVL 9

Expert Comment

by:Rodney Helsens
ID: 11795462
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
 
LVL 8

Expert Comment

by:daffodils
ID: 11795463
RadioButtonList is a List Control.. that's why they don't have a Checked property.
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question