#include <GUIConstantsEx.au3>
GUICreate("GUI")
$Ra1 = GUICtrlCreateRadio("", 325, 90, 55, 17)
$Ra2 = GUICtrlCreateRadio("", 380, 90, 55, 17)
$Ra3 = GUICtrlCreateRadio("", 325, 110, 55, 17)
$Ra4 = GUICtrlCreateRadio("", 380, 110, 55, 17)
$Ra5 = GUICtrlCreateRadio("", 325, 130, 55, 17)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $Ra1, $Ra2, $Ra3, $Ra4, $Ra5
For $i = 1 To 5 Step 1
Local $x = "ra" & $i
MsgBox(0, $x, BitAND(GUICtrlRead(Eval($x)), $GUI_CHECKED))
Next
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
;~ #include <GUIConstantsEx.au3>
;~ GUICreate("GUI")
;~ Local $Ra[6]
;~ $Ra[1] = GUICtrlCreateRadio("", 325, 90, 55, 17)
;~ $Ra[2] = GUICtrlCreateRadio("", 380, 90, 55, 17)
;~ $Ra[3] = GUICtrlCreateRadio("", 325, 110, 55, 17)
;~ $Ra[4] = GUICtrlCreateRadio("", 380, 110, 55, 17)
;~ $Ra[5] = GUICtrlCreateRadio("", 325, 130, 55, 17)
;~ GUISetState(@SW_SHOW)
;~ While 1
;~ $nMsg = GUIGetMsg()
;~ Switch $nMsg
;~ Case $Ra[1] To $Ra[5]
;~ For $i = 1 To 5
;~ Local $x = $Ra[$i]
;~ MsgBox(0, $i, BitAND(GUICtrlRead($x), $GUI_CHECKED))
;~ Next
;~ Case $GUI_EVENT_CLOSE
;~ Exit
;~ EndSwitch
;~ WEnd