Solved

Getting String values from RadioGroups

Posted on 1997-09-16
1
141 Views
Last Modified: 2010-04-04
How do you get the actual 'string' value from a RadioGroup?  For instance, the group has 2 options - Yes and No.  How do I retrive the text 'Yes' or 'No' instead of trying to convert the itemindex number?
0
Comment
Question by:d4jaj1
1 Comment
 
LVL 22

Accepted Solution

by:
pivar earned 20 total points
ID: 1345104
Use ItemIndex and Items.

That is:
   text := RadioGroup1.Items[RadioGroup1.ItemIndex];

ItemIndex is -1 if you haven't selected any option, so you have to make a check for this.

/pivar
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

896 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

16 Experts available now in Live!

Get 1:1 Help Now