Page 1 of 1

Clear many objects

Posted: Thu Jul 23, 2009 1:37 am
by Vanguarda
Hi HMG Brother´s,

Exist some way to clear many objects on my form better than:

Code: Select all

 Main.Text_1.Value := ""
 Main.Text_2.Value := ""
 Main.Text_3.Value := ""

With best regards,

Re: Clear many objects

Posted: Thu Jul 23, 2009 3:07 am
by Rathinagiri
Yes. May be this one useful.

Code: Select all

n := items_count
for i := 1 to n
   setproperty("main","Text_"+alltrim(str(i)),value,"")
next i

Re: Clear many objects

Posted: Thu Jul 23, 2009 3:48 pm
by Vanguarda
Hi friend Rathi,

Thanks for this solution. I´ll try it.

regards,