Posted on 2005-04-21
Last Modified: 2010-04-05
How do I set a default value to an item in a TradioGroup control ?

Question by:amielDorel
    LVL 27

    Expert Comment

    ?? just set the itemindex-property to the radio which should selected (itemindex is zerobased)
    LVL 15

    Accepted Solution

    If you want to do it in code on the OnShow of the form you can do

    RadioGroup1.ItemIndex := 0;

    If you want to set the default value to a specific string but you dont know its index you can use:

    RadioGroup1.ItemIndex := RadioGroup1.Items.IndexOf('YourItem')

    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

    Suggested Solutions

    In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
    Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    745 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

    14 Experts available now in Live!

    Get 1:1 Help Now