HMG Easy Build

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

Moderator: Rathinagiri

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 »

Hi Claudio

Wonderful :D

This isn't only "builder" but a File Manager 8-)
bpd2000 wrote:I suggest to open last visited directory / location by "HMG Easy Build"
+1

My two cent :

Code: Select all

ON CHANGE Grid1OnChange() ;

Code: Select all

*-----------------------------------------------------------------------------*
PROCEDURE Grid1OnChange()
*-----------------------------------------------------------------------------*

   LOCAL cFileName := aFiles [This.CellRowFocused, 5 ]
   
   LOCAL cFileExtn := UPPER( SUBSTR( cFileName, RAT( ".", cFileName ) + 1 ) )
   
   Form_1.StatusBar.Item(1) := cFileName 
   
   Form_1.Button_6.Enabled :=  cFileExtn $ "HBPPRG"
   
RETURN // Grid1OnChange()
Viva INTERNATIONAL HMG :D
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: HMG Easy Build

Post by danielmaximiliano »

esgici wrote: My two cent :
Geniooooo !!!! :mrgreen:
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
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:My two cent :

Code:
ON CHANGE Grid1OnChange() ;

Code:
*-----------------------------------------------------------------------------*
PROCEDURE Grid1OnChange()
*-----------------------------------------------------------------------------*

   LOCAL cFileName := aFiles [This.CellRowFocused, 5 ]
   
   LOCAL cFileExtn := UPPER( SUBSTR( cFileName, RAT( ".", cFileName ) + 1 ) )
   
   Form_1.StatusBar.Item(1) := cFileName
   
   Form_1.Button_6.Enabled :=  cFileExtn $ "HBPPRG"
   
RETURN // Grid1OnChange()
Very nice Friend !
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
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 »

This post is totally useless, it's just to complete my first 1000 posts. :lol: :lol: :lol:
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:This post is totally useless, it's just to complete my first 1000 posts. :lol: :lol: :lol:
Congrats amigo !

I wish you thousands 1000 posts :lol: :lol: :lol:

Because you are continuously working for HMG community and all your works are always extremely useful and educative for us :arrow: 8-)

Happy HMG'ing :D
Last edited by esgici on Sat Sep 06, 2014 9:21 pm, edited 1 time in total.
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 »

danielmaximiliano wrote:Geniooooo !!!! :mrgreen:
srvet_claudio wrote: Very nice Friend !
Gracias amigos :D

But

Code: Select all

cFileExtn $ "HBPPRG"
isn't good :?

instead

Code: Select all

( cFileExtn == "HBP") .OR. ( cFileExtn == "PRG")
is better.

Happy HMG'ing :D
Viva INTERNATIONAL HMG :D
User avatar
pctoledo
Posts: 123
Joined: Wed Aug 25, 2010 10:45 am
Location: Araçatuba - SP - Brazil
Contact:

Re: HMG Easy Build

Post by pctoledo »

esgici wrote: Form_1.StatusBar.Item(1) := cFileName
With that my search function will not work properly then follows a small change:

Code: Select all

****************************************************
PROCEDURE SEARCH_OPEN()
*********************************************************
LOCAL Key_Search, Url_Search := URL_FORUM
LOCAL cPath := UPPER(Form_1.Tree_1.Cargo (Form_1.Tree_1.Value))+"\", cPath_
      
   IF UPPER(cFolderHMG+"\SAMPLES\") $ cPath
      cPath := StrTran(cPath,UPPER(cFolderHMG)+"\SAMPLES\","")

      IF !EMPTY(cPath)
         Key_Search := ""
         DO WHILE AT("\",cPath)>0
            cPath_ := LEFT(cPath,AT("\",cPath)-1)
            IF !(cPath_ $ [ADVANCED|APPLICATIONS|BASICS|CONTROLS|EVENTS|FUNCTIONS|HFCL|HPDF|MISCELLANEOUS|UNICODE])
               IF IsDigit(RIGHT(cPath_,1))
                  cPath_:=LEFT(cPath_,RAT("_",cPath_)-1)
               ENDIF
               IF !(cPath_ $ Key_Search)
                  Key_Search += "+"+cPath_
               ENDIF
            ENDIF
            cPath := SUBS(cPath,AT("\",cPath)+1)
         ENDDO
         IF !EMPTY(Key_Search)
            Url_Search := URL_FORUM + "/search.php?keywords="+Key_Search+"&ch=300"
         ENDIF
      ENDIF

   ENDIF

   URL_OPEN ( Url_Search )

RETURN
Regards/Saludos,

Toledo

Clipper On Line
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: With that my search function will not work properly then follows a small change:
Thanks Toledo :)
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 post is totally useless, it's just to complete my first 1000 posts. :lol: :lol: :lol:
Congrats amigo !

I wish you thousands 1000 posts :lol: :lol: :lol:

Because you are continuously working for HMG community and all your works are always extremely useful and educative for us :arrow: 8-)

Happy HMG'ing :D
Thank you very much Friend, as always you're very kind :D
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
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 and Toledo:
I adapted the functions of you and works Ok for me.

Code: Select all

*-----------------------------------------------------------------------------*
PROCEDURE Grid1OnChange()
*-----------------------------------------------------------------------------*
   LOCAL cFullName := aFiles [This.CellRowFocused, 5 ]
   LOCAL cExt
   HB_FNameSplit (cFullName, NIL, NIL, @cExt, NIL)
   Form_1.StatusBar.Item(1) := cFullName 
   Form_1.Button_6.Enabled  := HMG_UPPER(cExt) $ ".HBP|.PRG"
RETURN

Code: Select all

***********************************************************************************
PROCEDURE SEARCH_OPEN()
***********************************************************************************
LOCAL Key_Search, Url_Search := URL_FORUM
LOCAL cPath := HMG_UPPER (Form_1.StatusBar.Item(1))+"\", cPath_

   IF HMG_UPPER (cFolderHMG+"\SAMPLES\") $ cPath
      cPath := STRTRAN (cPath,HMG_UPPER(cFolderHMG)+"\SAMPLES\","")

      IF !EMPTY(cPath)
         Key_Search := ""
         DO WHILE HB_UTF8AT ("\",cPath)>0
            cPath_ := HB_ULEFT(cPath,HB_UTF8AT("\",cPath)-1)
            IF !(cPath_ $ [ADVANCED|APPLICATIONS|BASICS|CONTROLS|EVENTS|FUNCTIONS|HFCL|HPDF|MISCELLANEOUS|UNICODE])
               IF HMG_ISDIGIT (HB_URIGHT(cPath_,1))
                  cPath_:= HB_ULEFT (cPath_,HB_UTF8RAT("_",cPath_)-1)
               ENDIF
               IF !(cPath_ $ Key_Search)
                  Key_Search = Key_Search + "+" +cPath_
               ENDIF
            ENDIF
            cPath := HB_USUBSTR (cPath,HB_UTF8AT("\",cPath)+1)
         ENDDO
         IF !EMPTY(Key_Search)
            Url_Search := URL_FORUM + "/search.php?keywords="+Key_Search+"&ch=300"
         ENDIF
      ENDIF

   ENDIF
   URL_OPEN ( Url_Search )

RETURN
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
Post Reply