RE: How to hide/show buttons using array
"Shkolnik M." <[email protected]>
| Newsgroups | gmane.comp.lang.delphi.programming |
|---|---|
| Message-ID | <[email protected]> |
for i:=1 to 9 do
(FindComponent('btn' + IntToStr(i)) as TButton).Visible:=False;
With best regards, Mike Shkolnik
EMail: [email protected]
http://www.scalabium.com
-----Original Message-----
From: smching2001 [mailto:[email protected]]
Sent: Monday, July 07, 2003 2:30 PM
To: [email protected]
Subject: [Delphi] How to hide/show buttons using array
I created 9 buttons (not the array button) in design view (say btn1,
btn2....btn9). Now I want to hide or show the buttons something like
the following code:
for i:=1 to 9 do
btnX.Visible:=False; <== where X is 1 to 9
The problem is how to replace the btnX with btn1, btn2, btn2...
Thanks.
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Inkjet cartridges up to 80% off. HP, Epson, Lexmark--we have your brand.
Free shipping on every order to the U.S. and Canada! Excellent service.
http://www.c1tracking.com/l.asp?cid=5510
http://us.click.yahoo.com/QWB0QC/.eUGAA/ySSFAA/i7folB/TM
---------------------------------------------------------------------~->
Delphi Tips & Tutorials...
http://www.delphicollection.com
---------------------------------------------------------------
Unsubscribe:[email protected]
List owner:[email protected]
---------------------------------------------------------------
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/