radio button arrays

davelt99

Member
Licensed User
Longtime User
I thought that by creating 2 radio button arrays and adding them to a panel, the user would be able to select a radio button from each array, However both arrays seem to be acting as one in that only one radio button of the two arrays remains checked, it is not possible to select one radio button from each array. Do I need to have 2 panels on the same layout to make this possible?

A portion of my code follows. Thank you.

Panel1.Initialize("")
Panel1.LoadLayout(Layout)
Panel1.Tag=Layout
Activity.AddView(Panel1, 0, 0, 100%x, 100%y)

Dim radioQ1(2) As RadioButton
Dim radioQ2l(2) As RadioButton

radioQ1(0).Initialize("q1")
radioQ1l(0).Tag="q1Yes"
radioQ1(1).Initialize("q1")
radioQ1(1).Tag="q1No"

radioQ2(0).Initialize("q2")
radioQ2l(0).Tag="q2Yes"
radioQ2(1).Initialize("q2")
radioQ2(1).Tag="q2No"

Panel1.AddView(radioQ1(0),240dip,145dip,80dip,34dip)
Panel1.AddView(radioQ1l(1),315dip,145dip,80dip,34dip)

Panel1.AddView(radioQ2(0),240dip,180dip,80dip,34dip)
Panel1.AddView(radioQ2(1),315dip,180dip,80dip,34dip)
 
Top