Solved

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

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Convert MS Word document to a PDF file 9 91
enhance the following code 3 37
how to make 2 step back? ..\..\ ExtractFilePath (paramstr(0)) 5 51
DBCtrlGrid, Delphi, Scroll 8 38
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
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 …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

839 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