EDIT: I think I've got it:
Code: Select all
global VPname, neuroscore
on mouseup
put 0 into neuroscore
repeat with x = 1 to 3
if the hilitedbuttonname of grp ("radiogrp" & x) is empty then
answer "Please complete survey"
exit mouseup
end if
add the label of btn (the hilitedbutton of grp ("radiogrp" & x)) of grp ("radiogrp" & x) to neuroscore
end repeat
put empty into VPname
put fld "name" of card "GCS" into line 1 of VPname
put label of button "Sex" of card "GCS" into line 2 of VPname
if fld "name" is not empty and label of button "Sex" is not "choose sex" then
go next card
else
answer "Fill in all fields"
end if
end mouseup