When I select "File->New->VCL Forms Application - Delphi for Win32" I get auto-generated unit and form with names "unit1.pas" and "Form1" respectively.
But one day my Delphi crashed, and now when I press "VCL Forms Application" to create new project, it generates unit and form with names "unit2.pas" and "Form2".
How can I fix it?
Incidentally, I installed, in front of new, older version of Delphi 开发者_运维技巧(so I can build applications for Win98). When I created a new project, I got the same results: "unit2.pas" and "Form2" auto-generated names.
So I think that the index for generating names is stored somewhere globally, independently of the Delphi version. I tried to find that index in the Windows registry: (HKCU / HKLM)\Software\(Borland / CodeGear / Embarcadero) and in folders "C:\Program Files\Common Files" "Borland Shared" and "CodeGear Shared". So far without success.
the number of the auto-generated unit and form names in not stored , is calculated based in the content of the RAD Studio\Project, you can change this folder from the IDE in the Tools/Options -> Environment Options -> Default project folder.
Look at your Documents\RAD Studio\Projects folder. I think new form and unit name is prepared automatically according to the last unit name in that folder.
精彩评论