Recent

Author Topic: How to remove a FORM from the Project without removing the code for it?  (Read 543 times)

jamie

  • Hero Member
  • *****
  • Posts: 7700
I have a Form that I wrote a lot of code in and decided that I got off the wrong foot.

I need to remove the TFORM ancestor from the FORMS list so I can sub class it differently and make it a run-time only class I can create when needed to set its Parent to whatever form needed at the time at run-time.
 
  How to I remove this FORM from the project without removing or deleting the code to it?

Jamie
The only true wisdom is knowing you know nothing

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12345
  • Debugger - SynEdit - and more
    • wiki
The easiest might be to copy the entire code into another unit, and then strip off unused units and make whatever changes.

Otherwise you will have to edit the LPI file of the project, and I guess remove (for the existing unit) stuff like
Code: Text  [Select][+][-]
  1.         <ComponentName Value="Form1"/>
  2.         <HasResources Value="True"/>
  3.         <ResourceBaseClass Value="Form"/>

 

TinyPortal © 2005-2018