Clean source code

Clean source code

Postby Otto » Tue Dec 10, 2019 4: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.

Image

This is the source code "monster".

Image

But now Harbourino comes into action

Image

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

Image

Change the source code to Harbourino style.

Image

Now all is very easy to follow.
Best regards
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6312
Joined: Fri Oct 07, 2005 7:07 pm

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 36 guests