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 

determining TComponent property at runtime

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Subrat B.
Guest





PostPosted: Thu Apr 22, 2004 2:58 am    Post subject: determining TComponent property at runtime Reply with quote



hi.

How do i determine if TComponent object such as (Textbox,
Tform,Richedit,Button etc etc) can be applied with .caption or .text at
RUNTIME.

i want to make a common function called setText(Tcomponent *x ,AnsiString
a)

which will determine the type of TComponent x and either do

x->Caption = a;

or

x->Text=a;


Thanks

Subrat




Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) 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.