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 

How to find out whether there is text in edit box present in

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using
View previous topic :: View next topic  
Author Message
satish
Guest





PostPosted: Fri Sep 01, 2006 8:12 am    Post subject: How to find out whether there is text in edit box present in Reply with quote



hi ,
I have dynamically created components (edit boxes, comboboxes )on a
scrollbox, how i can find whether the text property of editboxes on a
scrollbos or empty or not ....intially i have written code ..like this

procedure TForm1.Button1Click(Sender: TObject);
var i : integer;
begin
with ScrollBox1.Components do
begin
for i :=0 to ScrollBox1.ComponentCount-1 do
begin
if (ScrollBox1.Components[i] is TEdit)then
begin
if checktextstatus(Edit1.Text) the
ShowMessage('text presnt');
else
ShowMessage('text not present');
end;
end;
end;
end;

how to call the edit boxes into the function?

i went wrong in writing the code for the function
checkstatus(st:string):boolean;

can anybody help me in doing this so ....or suggest me how to code the
above problem

thanking you,
satish
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using 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.