RadioGroup select item through a string

0

I have a radioGroup with the items:

0 : bola
1 : futebol
2 : gol
3 : chuteira
4:  jogador

How to select the Index through the value recorded in the bank that is "ball, soccer ...".

    
asked by anonymous 03.07.2017 / 22:50

1 answer

2

Find the Index using IndexOf :

RadioGroup1.ItemIndex := RadioGroup1.Items.IndexOf('futebol');

Remember that in Radio group only one option will be selected, if you want to select more than one option, use CheckListBox of Additional .

    
03.07.2017 / 23:11