HMG Case

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 Case

Post 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
Viva INTERNATIONAL HMG :D
User avatar
dragancesu
Posts: 920
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

Re: HMG Case

Post 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
Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México

Re: HMG Case

Post 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.
User avatar
dragancesu
Posts: 920
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

Re: HMG Case

Post 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
Attachments
program.zip
(1.46 MiB) Downloaded 353 times
manual.zip
(2.81 MiB) Downloaded 357 times
User avatar
dragancesu
Posts: 920
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

Re: HMG Case

Post 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
Attachments
program2.zip
(1.46 MiB) Downloaded 388 times
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: HMG Case

Post by bpd2000 »

Excellent for sharing
I will verify and update
BPD
Convert Dream into Reality through HMG
Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México

Re: HMG Case

Post by Javier Tovar »

Hola dragancesu,

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

Saludos
Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México

Re: HMG Case

Post 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 5244 times
Saludos
User avatar
dragancesu
Posts: 920
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

Re: HMG Case

Post 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
Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México

Re: HMG Case

Post 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
Post Reply