Solved

Getting String values from RadioGroups

Posted on 1997-09-16
1
146 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Strange code, can use it, but i cant figure out what it does. 3 62
code issue 8 132
LAN or WAN ? 11 92
scroll down TListBox component in Delphi 1 11
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

822 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