TRadioGroup item index stays -1 lazarus / 31-LCL ---------------------------------------------------------------------- Orvel · 2013-12-27 12:46 I have a Radio Group, inside two Radio Buttons (not checked by default). I need to check if one of them is checked. I check expression RadioButton1.ItemIndex = -1, but the result is always True. Am I doing something wrong? ---------------------------------------------------------------------- howardpc · 2013-12-27 13:20 The ItemIndex property tells you the zero-based index number of the selected radiobutton, or -1 if no button is selected. Say you add three strings to the Items property of RadioGroup1: 'zero', 'one', 'two'. If you click the 'one' button, then the expression Code: [Select]RadioGroup1.ItemIndex=1 will be True while the expressions Code: [Select]RadioGroup1.ItemIndex=0 RadioGroup1.ItemIndex=2 will both be False. The expression Code: [Select]RadioGroup1.ItemIndex=-1 is True when no radiobutton is selected. The expression Code: [Select]RadioGroup1.ItemIndex=3 is always False, whether any button is selected or not. ---------------------------------------------------------------------- Orvel · 2013-12-27 13:35 Thank you, I added the radio buttons manually silly me