isA

I seem to misunderstanding isA. I’m attempting to set all radio buttons in a window with different names back to a default setting which errors with:

Type “Control” has no member named “value”
control(i).value = true

for i = (controlcount-1) downto 0 if control(i) isA RadioButton then if control(i).index = 2 then control(i).value = true end end next

Maybe a better way to do this?

You need to cast the control to a radio button since control doesn’t have a value property but the radio button class does. Should be

RadioButton(control(i)).Value = true

You have to cast it to a RadioButton first.

RadioButton (control (i)).Value…

Perfect guys. Thanks for being so quick to answer.