Solved

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

Posted on 2004-08-13
6
308 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
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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now