Clean source code

Post Reply
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Clean source code

Post by Otto »

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

********************************************************************
Post Reply