BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

might have asked this before

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc
View previous topic :: View next topic  
Author Message
feardotcom
Guest





PostPosted: Wed Feb 18, 2004 10:29 am    Post subject: might have asked this before Reply with quote



Cant remeber :(

I have a form full of edit boxes. Is there no way to control all of them at
once and set their .text to '' ?

I suspect i'll have to use an answer I received before, but I need to be
sure.

TIA



Back to top
feardotcom
Guest





PostPosted: Thu Feb 19, 2004 10:32 am    Post subject: Re: might have asked this before Reply with quote



"Bjørge Sæther" <bjorge (AT) hahaha_itte (DOT) no> wrote

Quote:
feardotcom wrote:
Cant remeber :(

I have a form full of edit boxes. Is there no way to control all of
them at once and set their .text to '' ?

I suspect i'll have to use an answer I received before, but I need to
be sure.

for i:=0 to ComponentCount-1 do begin
if Components[i] is TEdit then
TEdit(Components[i]).text:='Same for all !';
end;

--
Regards,

Bjørge Sæther
[email]bjorge (AT) haha_itte (DOT) no[/email]
-------------------------------------
I'll not spend any money on American Software products
until armed forces are out of Iraq.


Yip, that is the one, found it in my collection of snippets, thanks for the

help



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.