HMG 3.4.0

HMG Unicode versions 3.1.x related

Moderator: Rathinagiri

User avatar
gfilatov
Posts: 1090
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: HMG 3.4.0

Post by gfilatov »

mol wrote:Hi guys!
From where I can download newest release of harbour?
Link on Harbour-project.org drives to sourceforce and version 3.0 from 2012.
Hi Marek,

You can download the newest nightly Harbour 3.2.0dev (r1503021701) build at

http://sourceforge.net/projects/harbour ... s/nightly/

Hope that helps.
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein
User avatar
gfilatov
Posts: 1090
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: HMG 3.4.0

Post by gfilatov »

andyglezl wrote:hello

Still can not handle on the BROWSE this version, AUTO_INCREMENT fields ?
Some patch ?, It may be on next ?...
Hi Andrés,

For your info only. The following sample works fine in the HMG Extended Edition:

Code: Select all

#include "hmg.ch"

FUNCTION main()
   local i

if !file("test.dbf")
   dbcreate( "test", ;
         { { "CODIGO", "+",   5, 0 },  ;
           { "NOMBRE", "C",  45, 0 },  ;
           { "RFC",    "C",  13, 0 },  ;
           { "CLAVE",  "C",  20, 0 },  ;
           { "FIEL",   "C",  20, 0 },  ;
           { "CIECF",  "C",  20, 0 },  ;
           { "KEY",    "C", 200, 0 },  ;
           { "CER",    "C", 200, 0 } }, "DBFNTX" )
endif

   use test shared

if lastrec() == 0
   for i :=1 to 10
      dbappend()
   next
endif

   DEFINE WINDOW Win_1 ;
      AT 0,0 WIDTH 800 HEIGHT 600 TITLE "..." ;
      MAIN BACKCOLOR BLUE

      @ 02,02 BROWSE Browse_1 ;
              WIDTH 800-20 HEIGHT 600-40 ;
              WORKAREA Test ;
              LOCK ;
              VALUE 1 ;
              WIDTHS { 70, 210, 130, 100, 100, 100, 399, 300 } ;
              HEADERS { 'CODIGO', 'NOMBRE', 'RFC', 'CLAVE', 'FIEL', 'CIECF', 'KEY', 'CER' } ;
              FIELDS  { 'Test->CODIGO', 'Test->NOMBRE', 'Test->RFC', 'Test->CLAVE', 'Test->FIEL', 'Test->CIECF', 'Test->KEY', 'Test->CER' } ;
              FONT "VERDANA" SIZE 10 FONTCOLOR BLUE ;
              ON HEADCLICK { { ||  nil }, { ||  nil }, { || nil } } ;
              EDIT INPLACE ;
              APPEND ;
              DELETE ;
              READONLY { .T.,.F.,.F.,.F.,.F.,.F.,.F.,.F. } ;
              TOOLTIP '<Double Click>=Edit  <ALT+A>=Add   <DEL>=Delete' 

   END WINDOW

   CENTER WINDOW   Win_1
   ACTIVATE WINDOW Win_1

RETURN NIL
Hopr that useful 8-)
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

HMG 3.4.0

Post by Pablo César »

Thanks Grigory for your kind.

I have tested and worked in HMG. Extremely slow but working.
Browse use in HMG was considered ugly and was kept it in our library just for backwards compatibility.
please read this: viewtopic.php?f=2&t=1078

I tried to use GRID instead BROWSE with same Grigory example, but incremental field doens't responded as we wish in this control. Most probably it's because we have to use COLUMNCONTROLS for RowSource Grids and this is not expected in Grids internal procedures.

Even I have found some Harbour changings in this incremental field:
2015-02-17 17:22 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
  * src/rdd/dbf1.c
    * modified code which tries to detect if field flags were used in DBF
      header for autoinc numeric fields

2015-02-17 16:35 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
  * src/rdd/dbf1.c
    + added support for autoincrement fields with counter longer then 4 bytes
      Warning: if someone created tables with such fields i.e. { "I:+", 8, 0 }
               after my modification which added support for AutoInc flags in
               all numeric DBF fields then he should update counters manually
               using DBS_COUNTER flag. New code uses 64bit counters for such
               field located in different part of DBFFIELD structure.
I do not sure any more that this is only Harbour case as I've said. The problem to make implementations in grid for this case is going to go in different direction by HDT. Which they're always concerned to keep HMG friendly with API controls and not making implementations which in the future will need to fix and fix..

IMHO this type of field is not representing the increment as apropriated one. Because when we delete a record this deled number must be recovered (IMO), not continue sequences without re-utilization.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: HMG 3.4.0

Post by andyglezl »

Gracias Grigory, ayer descubrí que poniendo READONLY a la columna del campo incremental me funcionaba tal como lo mencionas.
----------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks Grigory, yesterday I discovered that putting the column READONLY incremental field I work as you mention.
READONLY { .T.,.F.,.F.,.F.,.F.,.F.,.F.,.F. } ;

IMHO this type of field is not representing the increment as apropriated one. Because when we delete a record this deled number must be recovered (IMO), not continue sequences without re-utilization.
Pablo César, tambien note lo que tu comentas, de que no se puede reutilizar los que se borren.
(a menos que el BROWSE valide y permita insertar el siguiente disponible de los borrados)
--------------------------------------------------------------------------------------------------------------
Pablo César, also note what your comment, you can not reuse being erased.
(unless the BROWSE validates and enables insert the next available erased)

Para lo que tengo que hacer, me es suficiente con esto ya que no voy a manejar mas de 500 registros. (en este caso)
------------------------------------------------------------------------------------------------------------------------------------------
For what I have to do, he is enough with this as I will not drive more than 500 records. (in this case)
Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
Pepe Ruano
Posts: 65
Joined: Fri Aug 16, 2013 11:31 am
DBs Used: DBF
Location: Almansa, Albacete - Spain
Contact:

Re: HMG 3.4.0 Pregunta - FAQ

Post by Pepe Ruano »

Hola amigos.
Tengo unas dudas y desearía que vosotros como más profesionales y maestros, me den su opinión.

Es realmente recomendable trabajar con la última versión 3.4.0 ?
Además de nuevas funciones y metodos que otras ventajas tiene ?

He compilado un mismo programa con tres versiones diferentes. Aparentemente no noto diferencias en el funcionamiento del programa. Pero observo que los tamaños del ejecutable final se incrementa según la versión.
Estos son los resultados:

Versión HMG 3.1.1 = 2.837 KB.
Versión HMG 3.3.1 = 3.845 KB.
Versión HMG 3.4.0 = 4.420 KB.

También al usar el Build del amigo Pablo César me genera dos grandes archivos llamados _0001 y _0002 de un tamaño similar 84 MB.

También quisiera saber si todas las versiones funcionan bien en Windows, 32/64 bits, XP - Windows7 y Windows8.

Espero de ustedes que si son tan amables me den su opinión.
Muchas Gracias. ;)

In English Google translation :(

Hello friends.
I have a question and would like you as more professionals and gurus, give me your opinion.

It's really advisable to work with the latest version 3.4.0?
Addition of new functions and methods that other advantages?

I compiled the same program with three different versions. Apparently I do not notice differences in the functioning of the program. But I note that the sizes of the final executable is increased depending on the version.
Here are the results:

HMG Version 3.1.1 = 2837 KB.
HMG Version 3.3.1 = 3,845 KB.
HMG Version 3.4.0 = 4,420 KB.

Also when using the Build of the friend Pablo César for 3.4.0 this generates two files called _0002 _0001 This and similar in size 84 MB.

He also asked whether all versions work well on Windows, 32/64 bits, XP - Windows7 and Windows8.

I expect that if you are so kind to give me their opinion.
Many Thanks. ;)


Pepe Ruano.
Saludos - Regards
Pepe Ruano
hmg.ruano.org
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: HMG 3.4.0 Pregunta - FAQ

Post by esgici »

Hola Pepe
Pepe Ruano wrote: It's really advisable to work with the latest version 3.4.0?
Absolutely YES :!:
Addition of new functions and methods that other advantages?
Please see announce post ... and make more and more tests and please inform us about find novelty ;)
I compiled the same program with three different versions. Apparently I do not notice differences in the functioning of the program. But I note that the sizes of the final executable is increased depending on the version.
Here are the results:

HMG Version 3.1.1 = 2837 KB.
HMG Version 3.3.1 = 3,845 KB.
HMG Version 3.4.0 = 4,420 KB.
As you know, HMG consists of tree bases: Harbour, MinGW and HMG itself. So, increased size may depend more than one factors.

Anyway, please forgot concerns left from DOS; no problem about .exe size, in actual working environment :arrow:
I expect that if you are so kind to give me their opinion.
I hope that you will like mine ;)

Happy HMG'ing :D
Last edited by esgici on Mon Mar 09, 2015 2:45 pm, edited 1 time in total.
Viva INTERNATIONAL HMG :D
EduardoLuis
Posts: 684
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina

Re: HMG 3.4.0

Post by EduardoLuis »

Hi Pepe:

The answer is absolute "YES".-
About functioning as there are very helpfull new functions, this will make the difference.-
Finally EXE size is not important, meanwhile your comparision was between 3.3.1 and 3.40.-
It's allways recomended to use last version, although you were familiarize with oldest.-
You can compile your programs on 32 or 64 bits, and both of them works fine with XP, Win 7, 8.-
I choose 32 bit compiling in app's i develope, because i don't know if end user works on 32 or 64.-
In some control if you work with Win7 / 8 with Aero skin you may have some trouble with transparences assignement.-
This bugg is generated by Aero definitions.- In my case i've make my background in white, so i solved.-
My suggestion is go with 3.40 version, no mather you are developing new comercial projects or just experimenting with this fantastic language.-
Hopping this answer your question, with regards Eduardo.-

Hola Pepe:

La respuesta es absolutamente "SI".-
Acerca del funcionamiento, las nuevas funciones hacen la diferencia que justifica usar la nueva versión.-
El tamaño final del EXE no es relevante, sobretodo cuando la comparación lo es entre 3.3.1 y 3.40.-
Es recomendable siempre utilizar la última versión, aun cuando te encuentres a gusto con las anteriores.-
Puedes compilar tus aplicaciones tanto en 32 como en 64 bit , y en ambos casos funciona correctamente en XP, Win7, 8.-
Yo elijo compilar en 32 bits en las aplicaciones que desarrollo, ya que desconozco si los usuarios finales trabajaran en 32 o 64.-
En algunos controles trabajando sobre Win 7 / 8 con Aero, podrás experimentar algun problema con las transparencias de los mismos.- Este defecto es producido por las definiciones del Aero.- En mi caso he desarrollado fondos blancos, por lo que no experimento ninguna dificultad.-
Mi recomentación es que uses la version 3.40, no importa si la aplicacarás a nuevos desarrollos comerciales o solo por experimentación con este fantástico lenguaje.-
Espero haber respondido tu interrogante.-
Cordialmente. Eduardo
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

HMG 3.4.0 Pregunta - FAQ

Post by Pablo César »

Hola Pepe !
Pepe Ruano wrote:También al usar el Build del amigo Pablo César me genera dos grandes archivos llamados _0001 y _0002..
Queria saber que archivos son estes a que te refieres.

Por acaso no seria esto lo que te ocurre con la generacion de _0001 y _0002 ?
viewtopic.php?p=40320#p40320

Sobre el resto, creo que los colegas ya dieron su parecer, espero que no hayan dudas. :)

Un gran abrazo,
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
Pepe Ruano
Posts: 65
Joined: Fri Aug 16, 2013 11:31 am
DBs Used: DBF
Location: Almansa, Albacete - Spain
Contact:

Re: HMG 3.4.0 Pregunta - FAQ

Post by Pepe Ruano »

I expect that if you are so kind to give me their opinion.
Gracias esgici por tu respuesta te agradezco mucho tu opinión y la rapidez en contestar. Ya lo tengo más claro. ;)
Saludos Cordiales
Saludos - Regards
Pepe Ruano
hmg.ruano.org
Post Reply