Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto Use Component Unit

Status
Not open for further replies.

dlancy

Programmer
Jun 22, 2004
6
US
I've created a component and registered it.

However, when I put it on the form, it doesn't add the unit to the uses clause when I compile. I have to do it manually to get it to work. Is there some step I'm missing which causes the unit to automatically be included when I place the component on the form?

Thanks,
Doug
 
Hmm not sure about this

Have you a constructor and does it include this
Code:
inherited create(Aowner);
as the last line.
As far as I know the registration part only adds the component to the Toolbar (and ensures its code will be compiled if it is 'used').


Steve
Those who know me have no need of my name. SD
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top