Control Array

I have a window which displays an array of radiobuttons (choiceRB(0)…choiceRB(22)). How do I check if and which button is checked in this array?

Do I have to for/next the whole array and check wether its value is true or is there an other smart solution?

If your radio buttons are part of the same control set, you will notice the method of the Action event has a parameter named index of type Integer.

This index value indicates which radio button was pressed.

  MsgBox "Button " + Str(index)

You can place the above code in the Action event of your radio button to get a visual idea on how to use the index value.

Ah I see,

thanks Alwyn