Page 2 of 4

Re: HMG Case

Posted: Thu Sep 26, 2013 1:58 pm
by esgici
gfilatov wrote: I've considered the generated code as good example of Browse control handling.
Sure, you are right and your work is successful (as always) and a good sample for browse :arrow:

I was just amazed at your patience, you have rewrite entire program from scratch :o

By the way, I'm afraid the original author will not like this:

first their programming secrets unveiled, and second your program is too long : 500+ lines :lol:

Happy HMG'ing :D

Re: HMG Case

Posted: Thu Sep 26, 2013 2:56 pm
by dragancesu
Thanks for the criticism, it is expected, the tutorial was short and I suspect that few people pay attention to the options

Dear @gfilatov, you find out exactly what is the absence of which is generated in a minute (which was my idea).

Run the program and click Edit-Forms

Next to the attributes which are not discussed in the brief instructions

NO: specify the number of the field
LABEL: how will write on the screen in front of the field/header in browse
BROWSE: whether to show the browse window

He deliberately left the last field indexed so that he could continue with the instructions.

The solution to this problem is simple, put the NO = 2
Generate program

P.S. write about how you like the idea, I am not satisfied with the realization but working on it

I write detailed instructions, the problem is my English

Re: HMG Case

Posted: Sat Sep 28, 2013 8:13 pm
by Javier Tovar
Also, I think the idea of our friend is good, make a program that generates Screens with additions, deletions, modifications, consultation, deployed, print, search, with an image of the record, indexes, DBFs ... all that we facilitate the task of doing the same forever .... I'm just a beginner, but if it's something you have to focus to raise the level of HMG. something like the IDE, but apart from generating the screens that we generate the rest ... would be something that would rise to the clouds to HMG.

Re: HMG Case

Posted: Fri Sep 19, 2014 10:10 am
by dragancesu
I see now that a year has passed since the launch of topics

Program is slightly redesigned and sleek, and you have two versions of the same functional
The difference is in the syntax generated by the program, the first xBase style (@ row, col CONTROL name ...), and other alternative syntax (DEFINE CONTROL name ...)

Manual is updated

If you have comments or ideas of what could be done and saves the time of writing the program write

Re: HMG Case

Posted: Fri Sep 19, 2014 10:13 am
by dragancesu
And second version



This is what I managed to do after over a year of dealing with HMG

I hope it will help beginners

Re: HMG Case

Posted: Fri Sep 19, 2014 12:12 pm
by bpd2000
Excellent for sharing
I will verify and update

Re: HMG Case

Posted: Fri Sep 19, 2014 3:51 pm
by Javier Tovar
Hola dragancesu,

Bueno el trabajo hecho, solo que hay que revisar en que forma se puede mejorar!!!

Saludos

Re: HMG Case

Posted: Fri Sep 19, 2014 5:03 pm
by Javier Tovar
Hola dragancesu,

El botón de "Buscar" no encuentra lo que le indicamos. Creo que debe de funcionar así:

-Click en "Buscar"
-Limpia los TextBox
-Elegimos por que campo va a buscar
-Click en Query y debe de posicionarse en el registro donde lo encontró.

Pero no lo hace, si le pongo "5" en el primer TextBox no me hace nada y me sigue mostrando los TextBox limpios. Pero no corresponden al Registro que esta seleccionado en el Browse.

Si me equivoco en algo dime.

El ejemplo es el que esta por defaul. "EDIT_1.prg"

Imagen después de la búsqueda:
Error in Query.png
Error in Query.png (94.64 KiB) Viewed 5882 times
Saludos

Re: HMG Case

Posted: Fri Sep 19, 2014 9:26 pm
by dragancesu
Hola Javiar

Thanks for your comments, you are right, I missed that empty date field and instead of empty value is today's date

Will be fixed soon

Re: HMG Case

Posted: Fri Sep 19, 2014 10:07 pm
by Javier Tovar
Hola dragancesu,

Aparte de lo que mencionas, cuando quieres encontrar un dato con el boton "Find" no lo hace en EDIT_1.prg, pero ya lo corrigió el Maestro GFilatov en el post anterior.

Saludos