On Thursday 12 January 2006 03:42, Mark Nutter wrote:
> --- johnf <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > 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.
>
> Dim i, c As Integer
> c = Window1.ControlCount - 1
> for i = 0 to c
>   if Window1.Control(i) IsA EditField then
>     Window1.Control(i).Enabled = False
>   end if
> next
>
> That's off the top of my head, but should do the
> trick.
>
>
> Mark Nutter

Thanks guys!  I did not realize the Window1.Control() was an array of the 
controls.  But where or better how did you guys figure that out.  I just 
checked the lang ref and the only thing for control is "control class".  The 
doc does not refer to any type of an array.  Maybe it is in the window def.  
Thanks again guys.
John
_______________________________________________
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