I would like to make a structure with the condition (if-else) RadioButton
I want that when the Radiobutton RB1 is selected, this function is active:
regAuxiliar = ultimoRegistro;
And when the radiobutton RB2 is selected, this function is active:
regAuxiliar = objRegistro;
And sorry for my English, I'm Brazilian.
radiobuttonObj.isChecked()
will give you boolean
if(radiobuttonObj1.isChecked()){
//do what you want
}else if(radiobuttonObj2.isChecked()){
//do what you want
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With