Yes, there is a way to make an array of editfields. Just name them all the
same and give them the proper index ('index' can be found under 'name' in
the propeties editor. That would create a control array. Do the same with
labels and loop trough the editfields. Then you have the index of the
editfield and you can use that to change the label's color. Ofcource, you
have to give the a label the same index as the corrosponding editfields.

This way, you only loop the ditfields, not all controlls and only once.

On 06/04/06, John McKernon <[EMAIL PROTECTED]> wrote:
>
> > Thanks for the suggestion, but I used an inside loop instead. Once
> > I've found a blank edit field, I loop through the controls again
> > looking for the appropriately named static text. When I find it, I
> > set it's color to red and exit the loop.
>
> Isn't there a way to use an array of edit fields and another array of
> static
> text items? If so, you could loop through the edit fields till you find a
> blank one, and then color the corresponding static text item.
>
> At least I *hope* there's a way to make an array of edit fields!
>
> - 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>
>
_______________________________________________
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