On Jun 21, 2006, at 9:38 AM, Chuck Pelto wrote:

Hi Steve,

On Jun 21, 2006, at 9:15 AM, Steve Garman wrote:

        if rb.Value then

I'm getting a method or property does not exist error at this line.

Code Window1.Action, line 00018 This method or property does not exist.
      if c.Value then

Here's my code....

  dim c as Control
  dim cName as string

  for i as Integer = 0 to ControlCount - 1

    c = Control(i)

    if c IsA GroupBox then

      MsgBox c.Name

      cName = c.Name

elseif c isa RadioButton and RadioButton(c).parent.name = cName then


at this point you have to cast c to get at RadioButton properties otherwise C is JUST a control

        rb = RadioButton(c)

      MsgBox rb.Name + " Index: " + str(rb.Index)

      if rb.Value then

        MsgBox rb.Caption + " is true!"

        else

        MsgBox rb.Caption + "  is false!"

      end if

    end if

  next i

_______________________________________________
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>

Reply via email to