Radiogroup select item through a string

Asked

Viewed 736 times

0

I have a radioGroup with the items:

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

How to select the Index by the value recorded in the bank which is "ball, football...".

1 answer

2


Locate the Index through the 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 the CheckListBox flap Additional.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.