Migration from Clipper to HMG

Moderator: Rathinagiri

User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Migration from Clipper to HMG

Post by esgici »

tonton2 wrote: I want to know is it possible to have an example of such filter suggest in EDIT.EXTENDED
Hello
Please clarify, what program produce that "Filtering Options" form ?
If it's accessible, may we will combine it with EDIT.EXTENDED.

Salut
Viva INTERNATIONAL HMG :D
User avatar
tonton2
Posts: 444
Joined: Sat Jun 29, 2013 1:26 pm
Location: Algerie
Contact:

Re: Migration from Clipper to HMG

Post by tonton2 »

Bonsoir.
Le fichier se trouve dans le repertoire
HMG.3.1.4\\SAMPLES\CONTROLS\EDITBOX\EDIT.EXTENDED\DEMO.PRG
et le fichier source est dans HMG.3.1.4\SOURCE\EDITEX\H_EDIT_EX.
mais je n'arrive pas a isoler la procedure entiere.
merci beaucoup de votre aide.
Translation
Goodevening.
The file is located in the directory
HMG.3.1.4 \ \ SAMPLES \ CONTROLS \ EditBox \ EDIT.EXTENDED \ DEMO.PRG
and the source file is in HMG.3.1.4 \ SOURCE \ EDITEX \ H_EDIT_EX.PRG
but I can not seem to isolate the integer procedure.
thank you very much for your help.
L'Algerie vous salut
Y.TABET
User avatar
tonton2
Posts: 444
Joined: Sat Jun 29, 2013 1:26 pm
Location: Algerie
Contact:

Re: Migration from Clipper to HMG

Post by tonton2 »

Bonsoir à toute l'equipe
en Clipper le fichier prg est automatiquement appelé ,mais dans hmg je me trouve dans une situation que je ne maitrise pas encore.
Comment appeler un fichier construit dans hmg-IDE ,sachant que les deux fichiers PRG ont un MAIN.
dans mon exemple gestion14 est le fichier principale et le fichier RECH_FAC qui est dans le repertoire RECH_FACT doit etre appelé de gestion14 par le sous menu "RECHERCHE DE FACTURE"
Merci beaucoup de votre aide
Bonne suite
Hi to all the team
Clipper in the prg file is called automatically, but in HMG I find myself in a situation that I have not yet mastered.
How to call a file built in hmg-IDE, knowing that both PRG files have a MAIN.
In my example gestion14 is the main file and the file RECH_FAC that find in directory RECH_FACT must be called by gestion14 in the menu item "REHERCHE DE FACTURE"
Thank you very much for your help
good result
Attachments
gest_2014.rar
(2.4 MiB) Downloaded 403 times
L'Algerie vous salut
Y.TABET
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Migration from Clipper to HMG

Post by esgici »

tonton2 wrote: Clipper in the prg file is called automatically, but in HMG I find myself in a situation that I have not yet mastered.
How to call a file built in hmg-IDE, knowing that both PRG files have a MAIN.
In my example gestion14 is the main file and the file RECH_FAC that find in directory RECH_FACT must be called by gestion14 in the menu item "REHERCHE DE FACTURE"
Hello Tabet

Please look at attached simple project.

This is SSW version of your "big" project ;)

As far as I know, after S87, it's completely abandoned calling .prg file(s) without proc/func .

In other hand, a project can't include more than one "Main" module ( procedure or function ); in fact not only "main" named, whatever the name, a project can't include more than one module with same name.

I hope that this SSW will give an idea to you :idea:

Happy HMG'ing :D

SimpleGest.zip
(1.09 KiB) Downloaded 359 times
Viva INTERNATIONAL HMG :D
User avatar
tonton2
Posts: 444
Joined: Sat Jun 29, 2013 1:26 pm
Location: Algerie
Contact:

Re: Migration from Clipper to HMG

Post by tonton2 »

Bonjour,sbah el KHIR,
le general je l'ai compris,mais je n'arrive pas a elaborer Rech_Fac comme fonction .
pouvez vous prendre mon exemple et le mettre dans votre SIMPLEGEST cela va peut etre me faire avancer,
Un grand merci a vous
Hello, sabah el KHIR,
the general I understood it, but I can't seem to develop Rech_Fac like function.
can you take my example and put it in your SIMPLEGEST.it could be will make me move,
A big thank you to you
Shokran ya Akhi
L'Algerie vous salut
Y.TABET
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Migration from Clipper to HMG

Post by esgici »

Sabah en-nour ya akhi

Sadly, I'm not sure that I understood you rigth :(

Putting your Rech_Fac.prg into SIMPLEGEST project is very easy :
copy this file from your rech_fac directory to SimpleGest\rech_fac directory
and rename first function "main" to "RECH_FAC"; that is all.

If you want another thing, please be more specific.

If I will understand and I will know the answer of your question, surely I want to help you, inshaa-Allah.

maassalam
Viva INTERNATIONAL HMG :D
User avatar
tonton2
Posts: 444
Joined: Sat Jun 29, 2013 1:26 pm
Location: Algerie
Contact:

Re: Migration from Clipper to HMG

Post by tonton2 »

Salam Alaikoum
I already put and I copy my Rech_Fac.prg into SimpleGest\rech_fac directory.
NB: the RECH_fac.prg Works very good alone, but when I call it with RECHERCHE FACURE into the gestion14, I have problem with FILES.FMG
I dont undestand Why ?
Attachments
error.rar
(410 Bytes) Downloaded 347 times
L'Algerie vous salut
Y.TABET
User avatar
tonton2
Posts: 444
Joined: Sat Jun 29, 2013 1:26 pm
Location: Algerie
Contact:

Re: Migration from Clipper to HMG

Post by tonton2 »

Salaam,
When I moved the fichiers.fmg main.fmg and form_3grids.fmg in the main directory , that is the error I receive.
Excuse me for bothering you
assalama
Attachments
prog_ERROR.JPG
prog_ERROR.JPG (22.42 KiB) Viewed 7771 times
L'Algerie vous salut
Y.TABET
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Migration from Clipper to HMG

Post by esgici »

OK, no problem my friend :)

maassalam
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: Migration from Clipper to HMG

Post by esgici »

Hello Tabet

Anyway I have tried a bit help you.

Please look at attachment, this is unified version of your project.

But, excusez moi, this isn't the right way to learn.

Now, the error you notified ( "Can't open #include file 'Main.fmg'" ) (and fixed already by yo also ) eliminated.

But now you will be fatigued by searching answer to "where and how Esgici changed, and for what ?" question :(

My humble opinion is : instead of dealing with big projects, begin at the most beginning, the simple and simplest samples, and go forward step by step; if your main goal is learn.

Happy HMG'ing :D
Attachments
gestion14(be).zip
Unified version of Gestion14 and Reach_Fac (source)
(63.68 KiB) Downloaded 373 times
Viva INTERNATIONAL HMG :D
Post Reply