Solved

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

Posted on 2014-11-21
4
152 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 

Author Comment

by:shawn857
ID: 40461548
...anyone?

Thanks
    Shawn
0
 
LVL 27

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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…

759 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