prg code function documentor in HMG
Moderator: Rathinagiri
prg code function documentor in HMG
Well in Clipper we had 'Click!' and in Foxbase 'FoxDoc', which created text files with cross reference of all the functions / procedures in all the prgs in the project/lnk/rmk file.
Do we have similar in HMG ?
I need to weed out many prgs whose functions are not called any more in my huge application, but can not do it manually.
Regards,
Anand
Do we have similar in HMG ?
I need to weed out many prgs whose functions are not called any more in my huge application, but can not do it manually.
Regards,
Anand
- serge_girard
- Posts: 3165
- Joined: Sun Nov 25, 2012 2:44 pm
- DBs Used: 1 MySQL - MariaDB
2 DBF - Location: Belgium
- Contact:
Re: prg code function documentor in HMG
Would love to have this also!
Serge
Serge
There's nothing you can do that can't be done...
-
- Posts: 273
- Joined: Sat May 18, 2019 2:11 pm
- DBs Used: Visual FoxPro, FoxPro
- Location: United States of America
Re: prg code function documentor in HMG
This would certainly be useful to me as well. I'd make use of such a utility.
- AUGE_OHR
- Posts: 2061
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: prg code function documentor in HMG
hi,
i have the Source of CLICK and made a Version for Xbase++
but CLICK only support Cl*pper "Keyword" and Syntax so it does not work on OOP Code.
also MACRO need "help". you need to insert "Comment" for Macro to get it work.
i never have test those Tool with xCommand Syntax. not sure if they understand this Type of Code.
i have the Source of CLICK and made a Version for Xbase++
but CLICK only support Cl*pper "Keyword" and Syntax so it does not work on OOP Code.
also MACRO need "help". you need to insert "Comment" for Macro to get it work.
i never have test those Tool with xCommand Syntax. not sure if they understand this Type of Code.
have fun
Jimmy
Jimmy
Re: prg code function documentor in HMG
I too had the source of Click from Oasis of that time (some 15 years ago), but do not know where (even) it is on my hdd/cd etc.
The latest net search shows, http://www.the-oasis.net/donate.php.
Anyway, am interested in HMG version, even cross referencing normal functions/procedures. No need of complex macro things.
Regards,
Anand
The latest net search shows, http://www.the-oasis.net/donate.php.
Anyway, am interested in HMG version, even cross referencing normal functions/procedures. No need of complex macro things.
Regards,
Anand
- AUGE_OHR
- Posts: 2061
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: prg code function documentor in HMG
hi,
hm ... they want to register now ..
but it is still Open Source so i can upload it, or
original CLICK include some *.OBJ and *.C but they are simple.
---
have just run my Xbase++ CLICK Version on my HMG Email Project.
as i expect it fail with #xCommand Syntax ... and did not know FMG files.
but not all Syntax fail
this Syntax fail
while this work with CLICK
it is the ";" which make the Difference for CLICK
---
neverless new PRG are create so i want to see if it still run.
when compile i got a Error
did someone "see" the Problem
while i have work on it i know how it look before
so that you must be CAREFULL when use new "generated" Code.
if compile find a Error it is easy to fix it but what if "logic" is change somewhere
hm ... they want to register now ..
but it is still Open Source so i can upload it, or
original CLICK include some *.OBJ and *.C but they are simple.
---
have just run my Xbase++ CLICK Version on my HMG Email Project.
as i expect it fail with #xCommand Syntax ... and did not know FMG files.
but not all Syntax fail
this Syntax fail
Code: Select all
DEFINE WINDOW <WindowName>
ROW <nRow>
COL <nCol>
WIDTH <nWindth>
HEIGHT <nHeight>
Code: Select all
DEFINE WINDOW <WindowName> ;
AT <nRow> ,<nCol> ;
WIDTH <nWindth> ;
HEIGHT <nHeight> ;
---
neverless new PRG are create so i want to see if it still run.
when compile i got a Error
Code: Select all
oEMail:SetBody( hb_StrToUTF8( cBody ) + e "\r\n" )
while i have work on it i know how it look before
Code: Select all
oEMail:SetBody( hb_StrToUTF8( cBody ) + e"\r\n" )
if compile find a Error it is easy to fix it but what if "logic" is change somewhere
have fun
Jimmy
Jimmy
Re: prg code function documentor in HMG
Thanks Tiger. Looks like latest version (3.01), but still clipper (console) code. Running it in its folder, does not complete the process.
Anyway thanks for the source code.
We have to check how make it in hmg, or maybe keep in harbour but get the required results.
Regards,
Anand
Anyway thanks for the source code.
We have to check how make it in hmg, or maybe keep in harbour but get the required results.
Regards,
Anand
- AUGE_OHR
- Posts: 2061
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: prg code function documentor in HMG
have compile Click_3.01_HMG.rar without Error but nothing happens after start.Tiger wrote: ↑Tue Dec 03, 2019 6:01 am How about this ...
http://hmgforum.com/viewtopic.php?f=10& ... ENT#p38629
i look into Taskmanager and it show Click.exe but it was "inactive"
---
the is a file clickstart.prg which is not in Original
do i have to include the function or not//Startup menu to debug click.prg failure on startup
****************************************************************************
FUNCTION ClickStart()
****************************************************************************
LOCAL nstart := 3
@ nstart ++, 2 SAY "Clickstart.prg added to permit debug program selection before start of"
@ nstart ++, 2 SAY "click.prg. The error messages from a runtime exit are less than optimal"
@ nstart ++, 2 SAY "while a line-by-line execution is helpful."
//altd()
//wait
Click()
RETURN nstart
have fun
Jimmy
Jimmy
- AUGE_OHR
- Posts: 2061
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: prg code function documentor in HMG
hi,
Question : why i have to include this line to get Console Output with "pure" Cl*pper Source
that why i can't "see" Sample from Click_3.01_HMG.rar
---
but the is a other Question with Click_3.01_HMG.rar : there are a lot of Code change
this is CLICK.PRG from Click_3.01_HMG.rar vs. Original Cl*pper Version compare with WinDiff as Grafic this is my Xbase Code i wonder why make so many Change while it are only FT_ Function which are not include in Source.
FT_ Function are from Nanforum LIB and there was also the Source. but those ASM and C Source are for Cl*pper and we need Windows Function for
so have a look at my __HARBOUR__ translation in this Modul to replace those missing Function
---
now i can compile/link and start App ... but it hang ...
it is just a MENU TO but i "see" no PROMPT
also no Variable in Debugger ... hm ...
p.s. i recommend for CLICK.INI use RUNMODE=S87 and NOT 5.x
p.s.p.s. who have a list of "Keyword" for harbour/HMG to include
Question : why i have to include this line to get Console Output with "pure" Cl*pper Source
Code: Select all
REQUEST HB_GT_WIN_DEFAULT // Console
---
but the is a other Question with Click_3.01_HMG.rar : there are a lot of Code change
this is CLICK.PRG from Click_3.01_HMG.rar vs. Original Cl*pper Version compare with WinDiff as Grafic this is my Xbase Code i wonder why make so many Change while it are only FT_ Function which are not include in Source.
FT_ Function are from Nanforum LIB and there was also the Source. but those ASM and C Source are for Cl*pper and we need Windows Function for
Code: Select all
FUNCTION ISDIR(cIn)
FUNCTION FT_MKDIR(cdir)
FUNCTION FT_ORIGIN()
FUNCTION FT_DEFAULT(cIn)
FUNCTION TabSpStrip( cString )
FUNCTION TabStrip( cString )
now i can compile/link and start App ... but it hang ...
Code: Select all
INCOLOR := setcolor( MAINCOLOR )
@ TL - 2 + BOXHIGH, 33 - ( len( YES_PRMPT ) / 2 ) prompt YES_PRMPT
@ TL - 2 + BOXHIGH, 46 - ( len( NO_PRMPT ) / 2 ) prompt NO_PRMPT
menu to VERI
p.s. i recommend for CLICK.INI use RUNMODE=S87 and NOT 5.x
p.s.p.s. who have a list of "Keyword" for harbour/HMG to include
have fun
Jimmy
Jimmy