In a message regarding Re: RadioButtons & GroupBoxes dated Wed, 21 Jun 2006
09:03:11 -0600, Chuck Pelto said that ...
> What's the call to tell whether a radio button is the selected item
> within a such a group?
> Value doesn't seem to do it. And I can't find any property inside of
> RectControl or Control Classes that will do it either.
Value works for me
Let's tidy it up a bit
dim rb as RadioButton
for i as Integer = ControlCount - 1 DownTo 0
if Control(i) isa RadioButton then
rb = RadioButton(Control(i))
if rb.parent = GroupBox1 then
if rb.Value then
MsgBox rb.Name + " is selected"
else
MsgBox rb.Name + " is not selected"
end if
Else
MsgBox rb.Name + " is not part of GroupBox1"
end if
end if
next i
--
Steve Garman
Using REALbasic 2006r2 Professional on Windows XP Pro
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>