Avatar

Level 10

You can do it that way but typically the RadioButtons are in a RadioButtonList (this is what gives them their exclusivity). So instead of testing the individual button you woudl test the RadioButtonList. So using your example and if the RadioButtonList is what you call the RadioButtonObject:

if (conditionion you want to test){

     OBJ1.rawValue = value of the RadioButton you want to set

}

Note that in teh RadioButtonList Object if you click on the Object palette and choose teh Binding tab this will allow you to give each RadioButton on state a unique value (like 1,2,3,4). They can display whatever you want but the on state must be unique. Then you simply set the obj1 to have that on state and your button will be activated.

Hope that helps

Paul