FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Clean source code
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Clean source code
Posted: Tue Dec 10, 2019 04:29 PM
Hello,
I have an old source code. There is an input screen with many controls on it.
If you change one of the controls all others are updated. This is done by one function.
But there are many parameters to pass. Sure this could be done better.
But now I had to make some changes.



This is the source code "monster".



But now Harbourino comes into action



Define a Harbourino include file. This way you only have one place to check everything.



Change the source code to Harbourino style.



Now all is very easy to follow.
Best regards
Otto

Continue the discussion