formater za hmg programs

Creative ideas/suggestions for HMG

Moderator: Rathinagiri

User avatar
dragancesu
Posts: 921
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

formater za hmg programs

Post by dragancesu »

Harbour is good but is more evolved and now the HMG
Unfortunately HMG does not follow everything that was going along the harbour
One of those things is a formatter code, useful thing that I miss

With clipper I used SNAP application for arranging and documentation purposes of the program

Later I was make something like it, a common mistake is to forget to close the loop so I detected

Then came the HMG and many commands DEFINE ... with which I am not spectacular but now I do not have time to fix

Are someone made a program as HBFormat for HMG programs?
User avatar
serge_girard
Posts: 3165
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: formater za hmg programs

Post by serge_girard »

Hi Dragan,

I do it manually.... it takes some discipline!

S
There's nothing you can do that can't be done...
chrisjx2002
Posts: 190
Joined: Wed Jan 06, 2010 5:39 pm

Re: formater za hmg programs

Post by chrisjx2002 »

Years ago I improved a program from Joe Fannucchi that makes indentation of prg programs.

You wil find attached the source and two language files : english and french.
Attachments
IndentV19.zip
IndentV19
(15.64 KiB) Downloaded 483 times
User avatar
serge_girard
Posts: 3165
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: formater za hmg programs

Post by serge_girard »

Merci Chrisjx2002 !

ça marche,

Serge
There's nothing you can do that can't be done...
chrisjx2002
Posts: 190
Joined: Wed Jan 06, 2010 5:39 pm

Re: formater za hmg programs

Post by chrisjx2002 »

De rien...
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: formater za hmg programs

Post by esgici »

serge_girard wrote:Merci Chrisjx2002 !

ça marche,

Serge
+1
Viva INTERNATIONAL HMG :D
User avatar
dragancesu
Posts: 921
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

Re: formater za hmg programs

Post by dragancesu »

Thank you Chrisjx2002 !

it's very usefull

Dragan
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: formater za hmg programs

Post by esgici »

Look at Click! in the Oasis : legendary utility by sainted Harbour guru and former Harbour manager Phil Barnet (RIP).
Click! is a CA-Clipper and Xbase++ source code reformatter. This is much more than a simple reindenter, but actually reestablishes spacing between elements in the lines of code and creates function cross reference charts.
Fully documented and configurable.

Viva Clipper, viva Harbour, viva HMG :D
Viva INTERNATIONAL HMG :D
Tiger
Posts: 70
Joined: Mon Aug 31, 2015 11:28 am
Location: Taipei

Re: formater za hmg programs

Post by Tiger »

I just do some more changes on this program:

1. Add option to indent " With Object / End With " structure

2. Add the comments to IF /FOR /WHILE / WITH

IF AAA
IF BBB
IF CCC
ENDIF //CCC
ENDIF //BBB
ENDIF //AAA

It seems work :roll: ... please do a backup 1ST ... if you want to try it ....
Attachments
indent_20.rar
(14.44 KiB) Downloaded 356 times
User avatar
dragancesu
Posts: 921
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

Re: formater za hmg programs

Post by dragancesu »

This is very good
Post Reply