Re: Thanks-How to hide/show buttons using array

"smching2001" <[email protected]>
Newsgroups gmane.comp.lang.delphi.programming
Message-ID <[email protected]>
Thank You. It is working.

--- In [email protected], "Shkolnik M." 
<mshkolnik@r...> wrote:
> for i:=1 to 9 do 
>   (FindComponent('btn' + IntToStr(i)) as TButton).Visible:=False;
> 
> With best regards, Mike Shkolnik
> EMail: mshkolnik@s...
> http://www.scalabium.com
> 
> 
> -----Original Message-----
> From: smching2001 [mailto:smching2001@y...] 
> 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 ---------------------~-->
Save on Coral Calcium. Get Better Health and
Stronger Bones. Seen on TV
http://www.challengerone.com/t/l.asp?cid-2805&lp=calcium2.asp
http://us.click.yahoo.com/9gf46B/EfUGAA/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/
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.