No matter what I do I always get 1..... Any see what I am doing wrong?
The last switch and the two usermsg are for troubleshooting.
Code:
integer iEdd
integer selection
string sSite
string showme
sdlginput "SITE LOCATION" "INPUT SITE NAME:" sSite
dialogbox 0 11 23 122 19 131 "PERFORM AN EDD?"
radiogroup 1 iEdd
radiobutton 2 2 2 40 9 "&YES"
radiobutton 3 74 2 42 11 "&NO"
endgroup
enddialog
while 1
dlgevent 0 selection
switch selection
case 0
endcase
case 2
case 3
endcase
default
exitwhile
endcase
endswitch
endwhile
dlgdestroy 0 CANCEL
switch selection
case 2
showme = "The YES option button"
endcase
case 3
showme = "The NO option button"
endcase
endswitch
usermsg " %s was selected." showme
usermsg "%i is the value of the variable" selection
PAUSE 20
The last switch and the two usermsg are for troubleshooting.