Solved

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

Posted on 2014-11-21
4
149 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 26

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

840 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