HOME - - - - - Delphi Tutorials TOC - - - - - - Other material for programmers

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.



   Search this site or the web        powered by FreeFind
 
  Site search Web search
Site Map    What's New    Search


Click here if you're feeling 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!

Click here to visit editor's freeware, shareware page.


Link to Tutorials main page
Here is how you can contact this page's author, Tom Boyd.


Valid HTML 4.01 Transitional Page WILL BE tested for compliance with INDUSTRY (not MS-only) standards, using the free, publicly accessible validator at validator.w3.org


If this page causes a script to run, why? Because of things like Google panels, and the code for the search button. Why do I mention scripts? Be sure you know all you need to about spyware.

....... P a g e . . . E n d s .....