Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Delphi-News aus aller Welt (https://www.delphipraxis.net/58-delphi-news-aus-aller-welt/)
-   -   Delphi Makes Updating Old Code Very Easy (Hidden Gem) (https://www.delphipraxis.net/201508-delphi-makes-updating-old-code-very-easy-hidden-gem.html)

DP News-Robot 27. Jul 2019 06:10

Delphi Makes Updating Old Code Very Easy (Hidden Gem)
 
When my computer hard drive crashed in October 2018 I was really upset. The hard drive was completely shot and unrecoverable. I lost all of the code I had been working on... ARRRGH! The last backup I had was taken in March 2015. Yup, 3 1/2 years of Delphi, Evelated DB, and SQL code GONE!

I intellectually accepted this had happened and purchased Carbonite within a few days of getting my computer back. However, I had not emotionally accepted I lost all the work. Last weekend I completely came to grips with the situation. Had a good cry. Decided to pickup what I could and start anew updating my old software.

The last time I compiled it was 2008. So I opened my Delphi 2005 project with Delphi 10.3 and clicked "Run" and held my breath.

It looked like crap. The default font is the old "System" font. The background colors didn't register properly. I couldn't see some of the stuff because the font color and background color was the same.

Hey wait a minute... I just got a clean compile on code that is hasn't been touched since 2008 running Delphi 2005. That's amazing!

So now I'm updating this code so I looks modern. In the process I will be replacing old functions with better, faster, more readable functions. Not all of them, just those using dumb code. I started swapping out function names in small little pieces. Repeating the Save, Run, Test, Close, Next Change. Save, Run, Test, Close, Next Change for every function I replaced.

I wanted to see if I had replaced all the old occurrences of one function with the new function.

By pure dumb luck I right-clicked on

Weiterlesen...


Alle Zeitangaben in WEZ +1. Es ist jetzt 22:54 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz