Page 2 of 4

Re: HMG IDE source code

Posted: Tue Nov 17, 2020 10:13 am
by serge_girard
As CALSCOT mentioned:
I applaud the source code becoming public, but I hope that there is some sort of central control or agreemnt as a mechanism to try to ensure that we don't end up with a whole lot of slightly incompatible versions. That could become a nightmare and do long term damage if it was to happen. Any thoughts on how that can be prevented?
This must indeed be solved! Rathi any ideas how to manage?

Re: HMG IDE source code

Posted: Tue Nov 17, 2020 11:35 am
by mol
Super news!
Time to work to update everything for all changes in HMG and add new properties!

Thanks for sharing!

Re: HMG IDE source code

Posted: Tue Nov 17, 2020 11:45 am
by AUGE_OHR
hi,

i like to request to add "DBF Field" into FMG in IDE

i have this Code to create a new *.FMG from DBF which can be load after *.FMG was create
DBF2FMG.ZIP
(2.23 KiB) Downloaded 242 times

Re: HMG IDE source code

Posted: Tue Nov 17, 2020 11:51 am
by jairpinho
thanks Roberto and Claudio for providing the IDE, this will help to improve the community a lot

Re: HMG IDE source code

Posted: Wed Nov 18, 2020 7:34 am
by Rathinagiri
In order to get successful compilation of IDE in HMG 3.5, I had to change this from line 1349

Code: Select all

//-------------------------------------------
PROCEDURE LOAD_LANGUAGE_MESSAGE()
//-------------------------------------------
LOCAL i, nNum, cText, cMsgs, cLin
   
   cMsgs := HB_MEMOREAD (StartUpFolder + ALLTRIM ( HB_UTF8STRTRAN (HB_MEMOREAD (StartUpFolder + cFileLanguage), chr(26), ' ')))
   
   AFILL (aMsgs, "XXX")
   
   for i := 1 To HMG_LEN ( cMsgs )
      cLin := ALLTRIM(memoline ( cMsgs , 254 , i ))
      nNum := VAL ( HB_ULEFT ( cLin , 3 ) )
      if nNum > 0
         cText := ALLTRIM ( HB_USUBSTR ( cLin , 5 , 254 ) )
         aMsgs [ nNum ] := cText
      endif
   next i

RETURN

to this.

It seems that there are more memoline() and HB_MEMOREAD() used in the code. I am curious to find, why does it work in 3.4.4 and doesn't work in 3.5.

Code: Select all

//-------------------------------------------
PROCEDURE LOAD_LANGUAGE_MESSAGE()
//-------------------------------------------
LOCAL i, nNum, cText, cMsgs, cLin
   
//   cMsgs := HB_MEMOREAD (StartUpFolder + ALLTRIM ( HB_UTF8STRTRAN (HB_MEMOREAD (StartUpFolder + cFileLanguage), chr(26), ' ')))
   cMsgs := HB_ATOKENS( HB_MEMOREAD( StartUpFolder + ALLTRIM ( HB_UTF8STRTRAN (HB_MEMOREAD (StartUpFolder + cFileLanguage), chr(26), ' ')) ),   CRLF )
   AFILL (aMsgs, "XXX")
   for i := 1 To HMG_LEN ( cMsgs )
      cLin := cMsgs[ i ] // ALLTRIM(memoline ( cMsgs , 254 , i ))
      nNum := VAL ( HB_ULEFT ( cLin , 3 ) )
      if nNum > 0
         cText := ALLTRIM ( HB_USUBSTR ( cLin , 5 , 254 ) )
         aMsgs [ nNum ] := cText
      endif
   next i
RETURN

Re: HMG IDE source code

Posted: Wed Nov 18, 2020 2:28 pm
by Anand
srvet_claudio wrote: Mon Nov 16, 2020 5:40 pm Hi all,
Roberto has decided to make public the source code of the HMG IDE.
Thanks to Roberto for this great work!
It's a great project, I hope you enjoy it!
Finally.

Many request were made for it earlier. And we thank Roberto and Claudio for it.

Hope it goes to Git and controlled as like HMG 3.5

Regards,

Anand

Re: HMG IDE source code

Posted: Wed Nov 18, 2020 3:41 pm
by Pcmodula
srvet_claudio wrote: Mon Nov 16, 2020 5:40 pm Hi all,
Roberto has decided to make public the source code of the HMG IDE.
Thanks to Roberto for this great work!
It's a great project, I hope you enjoy it!
Best regards.
¡Leyendo entre líneas estas son buenas y malas noticias!
Hermoso porque aumenta el conocimiento de todos,
feo porque todavía no tiene las últimas sugerencias de Roberto.
Me gustaría que me explicara cuáles son los conceptos "incorrectos" de este ide.
Dado que ha delegado al Sr. Soto para publicar las fuentes, tal vez quiera
decir que está pensando en abandonar un proyecto que considera maduro y en
capaz de continuar de forma independiente?
¡Sería un verdadero golpe para el corazón!

Salu2
Pcmodula

Reading between the lines this is good and bad news!
Beautiful because it increases everyone's knowledge,
ugly because she still doesn't have Roberto's latest suggestions.
I would like you to explain what are the "wrong" concepts of this ide.
Since he has delegated Mr. Soto to publish the sources, maybe he wants
say that he is thinking of abandoning a project he deems mature and in
able to continue independently?
It would be a real blow to the heart!

Rds
Pcmodula

Re: HMG IDE source code

Posted: Wed Nov 18, 2020 4:47 pm
by fouednoomen
Thanks to Roberto and Claudio !

Re: HMG IDE source code

Posted: Wed Nov 18, 2020 6:13 pm
by martingz
Mil gracias a Roberto y Claudio

Re: HMG IDE source code

Posted: Wed Nov 18, 2020 7:07 pm
by ASESORMIX
Saludos Cordiales Sr. Roberto.
Muchísimas Gracias por compartir tu gran esfuerzo con nosotros.

Tu gran generosidad sea recompensada con bendiciones de la Divina Providencia para ti y todos los tuyos.

Gracias, muchisimas gracias.