Solved

Delphi fill TEdit boxes in cycle instead of edit1.text:=''; edit2.text:='' etc.

Posted on 2003-11-03
2
509 Views
Last Modified: 2010-04-05
Hello. Could somebody help me with this ?

For example:  I have 100 TEdit boxes.(edit1,edit2,edit3...)  I want to fill all boxes with string 'abc'.  Is it possible to do it in a cycle ?

Thx.
0
Comment
Question by:morseus2
2 Comments
 

Accepted Solution

by:
wwwbetyar earned 125 total points
ID: 9674773
yes

For a:=1 to 100 do
  TEdit(form1.findcomponent('Edit'+inttostr(a))).Text:='abc';
0
 

Author Comment

by:morseus2
ID: 9674785
It works fine. Thx
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now