Solved

How to quickly clean out old remaining references to "dead" form controls?

Posted on 2014-11-21
4
144 Views
Last Modified: 2014-12-02
I have an app that has a rather large number of references to "dead" controls on a form. In other words, references to old TLabel's, TPanel's, TCheckboxes, etc that are not there anymore on the form. These obsolete controls however still remain in the Object Inspector, though the control no longer exists. Does anyone know of a "quick" way to clean all these old references out?

Thanks
    Shawn
0
Comment
Question by:shawn857
  • 3
4 Comments
 

Author Comment

by:shawn857
ID: 40461548
...anyone?

Thanks
    Shawn
0
 
LVL 25

Accepted Solution

by:
Sinisa Vuk earned 500 total points
ID: 40461838
strange.... if delete component from form - and save after that - ide should remove all refs.
Try close project and delete all but except *.dpr, *.dproj, *.pas, *.dfm, *.res,  and files specific to application (ini, db files, ...) - then reopen project again.
0
 

Author Comment

by:shawn857
ID: 40463811
Yes I tried this Sinisa, no luck.

Thanks
   Shawn
0
 

Author Comment

by:shawn857
ID: 40469910
Found the problem to this, and I'm a little embarrassed about it - I had a whole other TabbedNotebook full of controls hiding underneath the current PageControl that my project was using. I remember I had re-used some very old code in this project, but totally forgot about just masking over that old TabbedNotebook. Sorry for the wild goose chase guys...

Cheers
    Shawn
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now