Solved

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

Posted on 2003-11-03
2
510 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

831 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