Skip to Content
0
Apr 01, 2009 at 12:06 PM

case statement with radio-buttons

4457 Views

Hi Geeks,

I have a requirement like I have to code seperately for each of the radio-button selected on selection screen.

Using IF statement it becomes tedious as I had around 10 radio buttons for which there are 10 different blocks of code.My idea is a 'case' statement can make my job a bit easy.

Can any one pls suggest how I can use case statement to read the input of radio button selected.

If that cannot be done pls do suggest any other possible alternative to simplify my code.

Thanks in anticipation.