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 

Compiler can't find property of custom component

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





PostPosted: Wed May 02, 2007 11:13 pm    Post subject: Compiler can't find property of custom component Reply with quote



I've created a component (TElapsedTimer, derived from TTimer)
that has several new properties. All of the properties work
fine except for one (CountForever). When I put in code to
access that property the compiler says

E2316 'CountForever' is not a member of 'TElapsedTimer'

However, CountForever does appear on the
Object Inspector and I can set its value there.

Any thoughts? (I'm on BDS2006, SP2.)

Thanks.
Greg Reese
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed May 02, 2007 11:15 pm    Post subject: Re: Compiler can't find property of custom component Reply with quote



"Greg Reese" <kittythebulldog-1 (AT) sbcglobal (DOT) net> wrote in message
news:4638d4ca$1 (AT) newsgroups (DOT) borland.com...

Quote:
E2316 'CountForever' is not a member of 'TElapsedTimer'

Is TElapsedTimer's unit included in the uses clause correctly? Do you
have any other component also named TElapsedTimer installed, by
chance? Or maybe you have old DCUs of your component laying around
where CountForever did not exist yet?


Gambit
Back to top
Greg Reese
Guest





PostPosted: Thu May 03, 2007 1:16 am    Post subject: Re: Compiler can't find property of custom component Reply with quote



Quote:
Or maybe you have old DCUs of your component laying around
where CountForever did not exist yet?

That must have been it, though I don't know why CountForever
appeared in the Object Inspector. I looked around for all old
versions and got rid of them, rebuilt and reinstalled the
component and then it worked.

By the way, how do you delete a component from the tool
palette? That choice is greyed out on the pop-up menus for all
objects on that palette.

Also, is there a way of finding out what files (source,
object, etc.) a component on the palette is using? "Properties"
on a components pop-up menu in the Object Inspector doesn't
do it.

Thanks.
Greg Reese
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Thu May 03, 2007 1:30 am    Post subject: Re: Compiler can't find property of custom component Reply with quote

"Greg Reese" <kittythebulldog-1 (AT) yahoo (DOT) com> wrote in message
news:4638f198$1 (AT) newsgroups (DOT) borland.com...

Quote:
That must have been it, though I don't know why
CountForever appeared in the Object Inspector.

Because the Object Inspector gets its values from the component's
actually RTTI. But that may not be what is actually linked into the
executable during compiling if you have multiple DCUs hanging around.

Quote:
By the way, how do you delete a component from the tool
palette?

Uninstall its package from the IDE, or at least disable it.

Quote:
Also, is there a way of finding out what files (source,
object, etc.) a component on the palette is using?

No.


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