 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
feardotcom Guest
|
Posted: Wed Feb 18, 2004 10:29 am Post subject: might have asked this before |
|
|
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
|
Posted: Thu Feb 19, 2004 10:32 am Post subject: Re: might have asked this before |
|
|
"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 |
|
 |
|
|
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
|
|