在Delphi中从.dfm文件中删除属性的快速方法 [英] 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.
但是,这些属性被写入整个项目的多个.dfm文件中. 现在,当我尝试编译项目时,我得到 错误读取.:属性< ...>不存在"
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"
复杂的部分是属性值是二进制数据(存储在多行中),我不能仅使用Delphi replace或notepad ++ regexp(因为它们基于单行)将其删除.
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).
所以我的问题是:
是否有任何第三方工具或方法可以轻松地从多个.dfm文件中删除属性?
Are there any third party tools or ways to easily remove properties from multiple .dfm files?
推荐答案
尝试使用此工具 Delphi DFM properties remover
,可与旧版本的delphi,但也许可以为您提供帮助.
Try this tool Delphi DFM properties remover
, works with old versions of delphi but maybe can help you.
这篇关于在Delphi中从.dfm文件中删除属性的快速方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!