how do I check to see if an item in the RadioGroup is checked? lazarus / 31-LCL ---------------------------------------------------------------------- userx-bw · 2014-01-19 23:38 how do I check to see if an item in the  RadioGroup is checked? in the examples I have read they all say like this Code: [Select]if radio1.Checked then with the group not a single radio button but the TRadioGroup these do not work. Code: [Select]RadioGroup.checked RadioGroup.Items.Checked RedioGroup.ItemsIndex.Checked RadioGroup.Items[RadioGroup.ItemsIndex].checked reguardles if it is caps or not, Checked, or checked I get an error Code: [Select]mhsetroot.pas(433,36) Error: identifier idents no member "Checked" so How do I check to see if a selection is checked or selected within a TRadioGroup? ---------------------------------------------------------------------- taazz · 2014-01-19 23:42 RadioGroup1.ItemIndex <> -1; ---------------------------------------------------------------------- engkin · 2014-01-19 23:52 Please disregard this post. I just realized that I confused TCheckGroup with your question regarding TRadioGroup.    Thanks to Taazz Quotehow do I check to see if an item in the  RadioGroup is checked? Code: [Select]if CheckGroup1.Checked[TheIndexOfTheItemYouWant] then   //do something If you want to know how many items are checked: Code: [Select]  i, NumOfCheckedItems: integer; begin   NumOfCheckedItems := 0;   for i := 0 to CheckGroup1.Items.Count - 1 do   begin     if CheckGroup1.Checked[i] then       NumOfCheckedItems += 1;   end; ---------------------------------------------------------------------- taazz · 2014-01-20 00:11 Radiogroup only allows one item select at a time. ---------------------------------------------------------------------- userx-bw · 2014-01-20 00:34 Quote from: taazz on January 20, 2014, 01:11:27 amRadiogroup only allows one item select at a time. I know .. I just need to reset the value to -1 for that radiogroup and all other radioGroups that are not being used, as in my testing to check which radio button is selected then in selecting a different radiogroup the result for the last radiogroup stayed to the same value of whatever was checked last. therefore I need to reset that value of all the radiogroup's not being used to -1 so that I can check to be use that none of them are selected then move on with the code .. for a lack of a better way of putting it ... thanks !