Im sure this will be a simple one but have a project that started as a test.
When it was created it was saved as "Project2.dpr"
我相信这将是一个简单的,但有一个项目,作为一个测试开始。创建时它保存为“Project2.dpr”
Now the test is no longer a 'test', i would like to change the projects name to something more meaningful.
现在测试不再是'测试',我想将项目名称更改为更有意义的东西。
whats the best way to do this?
这是最好的方法吗?
Any issues with just changing the file name and the Program line to the new name? i.e.
只是将文件名和程序行更改为新名称的任何问题?即
meaningful.dpr
Program meaningful;
Note:Delphi 7 if it matters
注意:Delphi 7是否重要
2 个解决方案
#1
38
Just do "Save Project as" from the file menu in Delphi giving it the name you want and, later on when you feel like, remove the Project2.* files from your folder as they are not needed anymore.
只需从Delphi的文件菜单中“保存项目为”,为其提供所需的名称,稍后在您需要时,从文件夹中删除Project2。*文件,因为它们不再需要。
#2
16
FYI: Starting with Delphi 8 you can simply right-click the project in the project manager and select "Rename" (or simply press F2). This has the benefit over the "Save As" approach that you don't end up with a copy.
仅供参考:从Delphi 8开始,您只需在项目管理器中右键单击项目,然后选择“重命名”(或只需按F2)。这样做有利于“另存为”方法,您最终不会得到副本。
(sorry, no Delphi 7 - thanks to Lars for the update)
(抱歉,没有Delphi 7 - 感谢Lars的更新)
#1
38
Just do "Save Project as" from the file menu in Delphi giving it the name you want and, later on when you feel like, remove the Project2.* files from your folder as they are not needed anymore.
只需从Delphi的文件菜单中“保存项目为”,为其提供所需的名称,稍后在您需要时,从文件夹中删除Project2。*文件,因为它们不再需要。
#2
16
FYI: Starting with Delphi 8 you can simply right-click the project in the project manager and select "Rename" (or simply press F2). This has the benefit over the "Save As" approach that you don't end up with a copy.
仅供参考:从Delphi 8开始,您只需在项目管理器中右键单击项目,然后选择“重命名”(或只需按F2)。这样做有利于“另存为”方法,您最终不会得到副本。
(sorry, no Delphi 7 - thanks to Lars for the update)
(抱歉,没有Delphi 7 - 感谢Lars的更新)