Here is the example script from the discussion of the radiogroup command in the ASPECT help file:
proc main
integer Choice ; Used for radio button group.
integer Event ; Dialog box event.
dialogbox 0 0 0 100 50 11 "Choose One"
radiogroup 1 Choice ; Define radio group.
radiobutton 2 5 5 90 12 "&Green"
radiobutton 3 5 20 90 12 "&Red"
endgroup
pushbutton 4 25 35 50 15 "&Done"
enddialog
while 1
dlgevent 0 Event ; Get dialog box event.
switch Event ; Evaluate the event.
case 0 ; No event occurred.
endcase
case 1 ; Radio group control selected.
endcase
default ; Exit case selected.
exitwhile ; Exit the while loop.
endcase
endswitch
endwhile
dlgdestroy 0 CANCEL ; Destroy the dialog box.
if Choice == 2 ; Evaluate radio group state.
usermsg "Green!"
else
usermsg "Red!"
endif
endproc
You might also want to take a look at the discussion of the radiogroup and radiobutton commands in the ASPECT help file. If you are having problems visualizing the UI in the ASPECT Editor, you can create your dialog using Procomm's dialog editor (Tools | Script Tools | Dialog Editor). After you have the dialog the way you want, you can save it to a .was file (or .wud), then include that code in your main script.