--- 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
Quick and easy regex creation and debugging!
http://www.bucktailsoftware.com/products/regexplorer/
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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>