Doh!  I'm oblivious to the obvious.

~joe

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Carlos M
Sent: Monday, July 24, 2006 3:38 PM
To: REALbasic NUG
Subject: RE: isa editfield

On Jul 24, 2006 9:29 PM, Joseph wrote:
> I'm sure that I have code similar to this in some other 
> projects, but for
> some reason this doesn't seem to work.
> 
>   for i = 0 to count
>     if self.control(count) isa editfield then
>       editfield(self.control(count)).text=""
>       
>     end
>   next

Shouldn't you use "i" instead of "count" inside the loop?
  if self.control(i) isa editfield then
    editfield(self.control(i)).text=""

Carlos
_______________________________________________
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