RE: Array of controls

Eduardo Duran Cardenas <[email protected]>
Newsgroups gmane.comp.lang.delphi.programming
Message-ID <51B9D9ACEE68B840A27F7C86903C9D15013F27E2@TFM_MTY_DOM05>
var A : Array [0..10] of TEdit;

then ...

 edit1.text := one;
 edit2.text := two;

insert the edit in the array.

 A[1] := edit1;
 A[2] := edit2;
and so on..
You cannot name all the edits equal.
 

> -----Mensaje original-----
> De: Jeff Steinkamp - N7YG [mailto:[email protected]]
> Enviado el: Miércoles, 16 de Julio de 2003 02:44 p.m.
> Para: Delphi Yahoo Group
> Asunto: [Delphi] Array of controls
> 
> 
> There is probably a very simple method to this, but it 
> escapes me.  How
> do I create an array of controls.  For instance.  I want 10 Tedit
> controls on a form all named Freq.  I want to be able to access the
> controls using the name and array position. Such as Freq[0] through
> Freq[10].
> 
> Thanks
> 
> Jeff Steinkamp
> 
> 
> 
> ------------------------ Yahoo! Groups Sponsor 
> ---------------------~-->
> Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
> Printer at Myinks.com. Free s/h on orders $50 or more to the 
> US & Canada.
> http://www.c1tracking.com/l.asp?cid=5511
> http://us.click.yahoo.com/sOykFB/k9VGAA/ySSFAA/i7folB/TM
> --------------------------------------------------------------
> -------~->
> 
> CodeCoffer - new Delphi code protection Tool!
> http://www.delphicollection.com/public/CodeCoffer.htm
> ---------------------------------------------------------------
> Unsubscribe:[email protected]
> List owner:[email protected]
> --------------------------------------------------------------- 
> 
> Your use of Yahoo! Groups is subject to 
> http://docs.yahoo.com/info/terms/ 
> 
> 

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Free shipping on all inkjet cartridge & refill kit orders to US & Canada. Low prices up to 80% off. We have your brand: HP, Epson, Lexmark & more.
http://www.c1tracking.com/l.asp?cid=5510
http://us.click.yahoo.com/GHXcIA/n.WGAA/ySSFAA/i7folB/TM
---------------------------------------------------------------------~->

CodeCoffer - new Delphi code protection Tool!
http://www.delphicollection.com/public/CodeCoffer.htm
---------------------------------------------------------------
Unsubscribe:[email protected]
List owner:[email protected]
--------------------------------------------------------------- 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.