HMG Easy Build

Utilities like DBU, Make, IDE written in HMG/ used to create HMG based applications

Moderator: Rathinagiri

User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: HMG Easy Build

Post by danielmaximiliano »

Agil Abdullah wrote:
I failed to recompile your source of hmg_easybuild.prg. Error read as below:
Kill process with Process Explorer , Sysinternals Microsoft.

Link Español ...
http://technet.microsoft.com/es-es/sysi ... 96653.aspx


Link English ...
http://technet.microsoft.com/en-us/sysinternals/
http://technet.microsoft.com/en-us/sysi ... s/bb795533
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: HMG Easy Build

Post by esgici »

pctoledo wrote: In my initial code SEARCH_OPEN, was using Form_1.StatusBar.Item (1) to get the current open folder, but your suggestion included the name of the selected file, then the only way out was to use Form_1.Tree_1.Cargo (Form_1.Tree_1.Value)).
"Cargo" is undocumented property and not a obligation using it here. Getting path info from a full file specification isn't difficult nor unknown method.
The HMG Easy Build can be used to compile the demos of the SAMPLES folder, but can also build any other project HMG in other folders. So I thought it best to limit SEARCH_OPEN only when the SAMPLES folder is selected. So the search will be based on the selected folder, searching forum function / events / controls related to the current folder.
IMO unnecessary limitations are not good programming practice; instead programmer should open easy and free ways to user as soon as possible. For example if I have a project named "browse" out of <hmg>\SAMPLE folder, what problem may arise when I want search "browse" on forum ?
When any folder is selected, different SAMPLES, the button HMG Forum will open hmgforum
Again, IMO this is a wrong behavior.

Sorry, everything in this subject are different personal points of view and discussing is meaningless. Lets author of program will select his best way.
Viva INTERNATIONAL HMG :D
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: HMG Easy Build

Post by srvet_claudio »

I think the best solution is that the user has available two clear alternatives:
1) direct access to the forum
2) allow search of any word, the name of the control in sample folder appear as suggestions but not as obligation
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: HMG Easy Build

Post by esgici »

srvet_claudio wrote:I think the best solution is that the user has available two clear alternatives:
1) direct access to the forum
2) allow search of any word, the name of the control in sample folder appear as suggestions but not as obligation
+1
Viva INTERNATIONAL HMG :D
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: HMG Easy Build

Post by esgici »

srvet_claudio wrote:...
2) allow search of any word, the name of the control in sample folder appear as suggestions but not as obligation
Alright :arrow:

So my changed suggestion :

Code: Select all

PROCEDURE SEARCH_FORUM()

   LOCAL nGrRow := Form_1.Grid_1.CellRowFocused
   
   LOCAL cPath := '',; 
         cFNam := '',;
         cSStr := ''
   
   IF nGrRow > 0
      cPath := aFiles[ nGrRow, 5 ]
   
      IF !EMPTY( cPath ) 
         HB_FNameSplit( cPath, , @cFNam )
      ENDIF      
   ENDIF   
   
   cSStr := InputBox( "Enter search string :", "Search in HMG Forum", cFNam )
   
   IF !EMPTY( cSStr )    
      URL_OPEN ( URL_FORUM + "/search.php?keywords=" + cSStr + "&ch=300" )            
   ENDIF   
   
RETURN // SEARCH_FORUM()
Saludos to all friends :D
Viva INTERNATIONAL HMG :D
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: HMG Easy Build

Post by srvet_claudio »

esgici wrote:
srvet_claudio wrote:...
2) allow search of any word, the name of the control in sample folder appear as suggestions but not as obligation
Alright :arrow:

So my changed suggestion :

Code: Select all

PROCEDURE SEARCH_FORUM()

   LOCAL nGrRow := Form_1.Grid_1.CellRowFocused
   
   LOCAL cPath := '',; 
         cFNam := '',;
         cSStr := ''
   
   IF nGrRow > 0
      cPath := aFiles[ nGrRow, 5 ]
   
      IF !EMPTY( cPath ) 
         HB_FNameSplit( cPath, , @cFNam )
      ENDIF      
   ENDIF   
   
   cSStr := InputBox( "Enter search string :", "Search in HMG Forum", cFNam )
   
   IF !EMPTY( cSStr )    
      URL_OPEN ( URL_FORUM + "/search.php?keywords=" + cSStr + "&ch=300" )            
   ENDIF   
   
RETURN // SEARCH_FORUM()
Saludos to all friends :D
This is nice!
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: HMG Easy Build

Post by esgici »

danielmaximiliano wrote:
Agil Abdullah wrote:
I failed to recompile your source of hmg_easybuild.prg. Error read as below:
Kill process with Process Explorer , Sysinternals Microsoft.

Link Español ...
http://technet.microsoft.com/es-es/sysi ... 96653.aspx


Link English ...
http://technet.microsoft.com/en-us/sysinternals/
http://technet.microsoft.com/en-us/sysi ... s/bb795533
Since we have Task Manager, why using separate program for terminate any process ?

Simply right click the task bar, select task manager, select process to terminate and click terminate process button; that's all :arrow:
Viva INTERNATIONAL HMG :D
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: HMG Easy Build

Post by esgici »

srvet_claudio wrote:...
This is nice!
Thanks Claudio :D

Now may be it's time to add :
  • - Search in HMG DOC
    - Sampled HMG Doc (?)
    - Search in local HD (s)
:?: :?

Regards
Viva INTERNATIONAL HMG :D
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: HMG Easy Build

Post by srvet_claudio »

esgici wrote:
srvet_claudio wrote:...
This is nice!
Thanks Claudio :D

Now may be it's time to add :
  • - Search in HMG DOC
    - Sampled HMG Doc (?)
    - Search in local HD (s)
:?: :?

Regards
Very good ideas!

PS: For these days I've left this project because I'm finishing the new release of HMG.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: HMG Easy Build

Post by esgici »

srvet_claudio wrote:[
Very good ideas!
Thanks Claudio :D
PS: For these days I've left this project because I'm finishing the new release of HMG.
OK. You are right; HMG should have high priority :arrow:

Regards :)
Last edited by esgici on Tue Sep 09, 2014 7:04 pm, edited 1 time in total.
Viva INTERNATIONAL HMG :D
Post Reply