I am trying to use the lines or text next to the radiogroup's radiobuttons to be assigned to the text of a editbox or any other type of output please :) I am using Delphi 2010
Asked
Active
Viewed 1,126 times
-1
-
What's your [code](https://stackoverflow.com/help/mcve)? Insert it to your question! – FZs Jan 03 '19 at 19:59
1 Answers
2
The Items
property contains the radio button captions, and the ItemIndex
property contains the index of the radio button that is currently selected. For example:
procedure TForm1.RadioGroup1Click(Sender: TObject);
begin
Edit1.Text := RadioGroup1.Items[RadioGroup1.ItemIndex];
end;

Remy Lebeau
- 555,201
- 31
- 458
- 770