Delphi tutorial: Using an old project as the basis of a new one (Level 2)
This has good information, and a search button at the bottom of the page
Please don't dismiss it because it isn't full of graphics, scripts, cookies, etc!
Click here if you want to know more about the source
and format of these pages.
IGNORE ANY PERIODS (.) AT THE START OF ANY LINE
DT2c.. Using an old project to start a new one.
This may not cover all elements of the process, but it illustrates what I did on one occasion!
I had DD06 up and working well. I wanted to make a new program which was an adaptation of DD06. The adaptation will be called DD07 here.
First I created a folder for DD07.
Then I got Delphi running, and did File|OpenProject, and opened DD06.
I then did File|SaveProjectAs, and when the first box came up, I changed to the DD07 folder, changed the default DD06.dpr to DD07.dpr. (Only one thing SEEMED to need saving, but this was misleading... Delphi was 'helpfully'(?) 'remembering' that the .pas file for this project was back in DD06's folder... not what I had in mind!
To fix this, I clicked on the DD06u1.pas window, then did File|SaveFileAs, and changed the folder and name of DD06u1.pas to DD07u1.pas, and ran the project again. That seemed to give me all the right files, and the .exe file was now DD07.exe.
However, there were still references to DD06f1 in various places.
Next, I used the object inspector to change the name property of the form from DD06f1 to DD07f1. N.B.... trying to edit the source code to change references to 06 to say 07 is not a good idea. And I re-ran the program.
Now all references to DD06 seemed to be okay. If you referred to DD06 anywhere in comments that you wrote, I doubt they would be changed... but neither would they prevent the program from running. Perhaps now you might want to use Delphi's editor's search and replace, just to see if any references to DD06 remain.
.. and click here, too, if you're feeling really kind! (Promotes my site via "Top100Borland")
Ad from page's editor: Yes.. I do enjoy compiling these things for you...
hope they are helpful. However.. this doesn't pay my bills!!! If you
find this stuff useful, (and you run an MS-DOS or Windows pc) please visit my freeware and shareware page,
download something, and circulate it for me? Links on your page to
this page would also be appreciated!
Why does this site cause a script to run? I have the traffic to this page monitored for me by Jazar Top 200 Delphi, and they provide promotional services, too. Click the "Help get this site publicity" link above for more information.