Produce VB code that will declare a variable sizeOK and set

Produce VB code that will declare a variable sizeOK and set it to True and declare a variable size. Your code should then examine radio buttons (rdo8, rdo12, rdo16) to give a value to size as appropriate. If no button is checked set sizeOK to False. If one of the buttons is checked, size should be set appropriately (to 8, 12, or 16).

Solution

Dim sizeOK as Boolean = True

Dim size as Integer

if(rdo8.checked)

size=8

else if(rdo12.checked)

size=12

if(rdo16.checked)

size=16

end if

if(not rdo8.checked and not rdo12.checked and not rdo8.checked)

sizeOK=false

 Produce VB code that will declare a variable sizeOK and set it to True and declare a variable size. Your code should then examine radio buttons (rdo8, rdo12, r

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site