Search code examples
regexdelphipropertiesdelphi-2006dfm

A quick way to remove properties from .dfm files in Delphi


I have recently modified one of my components, and it so happens it is no longer using one of the properties it used before.

However, those properties are written in multiple .dfm files throughout the project. Now, when i try to compile the project, i get "Error reading .: Property <...> does not exist"

The complicated part is that the property value is binary data (stored in multiple lines), and i cant just delete it with Delphi replace or notepad++ regexp (since they are single-line based).

So my question would be:

Are there any third party tools or ways to easily remove properties from multiple .dfm files?


Solution

  • Try this tool Delphi DFM properties remover, works with old versions of delphi but maybe can help you.