At 11:02 PM -0800 1/11/06, johnf wrote:

How can I loop through all the editfields within a window?  I want to set all
the controls to enable = False.  I do have tabs and a few other controls.  I
found window.controlcount and I'm sure that will help but I don't know what
to do next.

Look next to it, at the Window.Control function. Those two are all you need (though once you have a control reference, you'll probably need to use IsA to figure out what sort of control it is, and typecasting to treat it as whatever you've found it to be).

For example, to disable all the EditFields:

  Dim i As Integer
  for i = 0 to ControlCount-1
    if Control(i) IsA EditField then
      EditField(Control(i)).Enabled = false
    end if
  next

Best,
- Joe

--

Joseph J. Strout
[EMAIL PROTECTED]
_______________________________________________
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