On Jun 19, 2006, at 2:49 PM, Chuck Pelto wrote:

<snip>
The question remains, how do I access a control element, such as an EditField with a Control Class object?

Regards,

Chuck


Hi Chuck.

I put two editfields and a pushbutton in a new window.

In the pushbutton action method, I put

  msgbox "Control Count = " + str(ControlCount)

  dim e as EditField
  dim i as integer

  for i = 0 to ControlCount-1
    if Control(i) isa Editfield then
      e = EditField(Control(i))
MsgBox "Control(" + str(i) + ") Isa EditField that contains " + e.Text
    end if
  next

and it seems to work ok for me.

Hope that helps.

Russ

_______________________________________________
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