Beginning to develop 1993 prg code to Windows

Moderator: Rathinagiri

Post Reply
gfrae
Posts: 4
Joined: Fri Feb 28, 2014 1:46 am

Beginning to develop 1993 prg code to Windows

Post by gfrae » Tue Mar 04, 2014 7:11 pm

I have a complete Clipper application (.prg's) interfacing with .dbf databases that I wrote and successfully deployed in 1993. I now wish to reactivate that application. I have all the original .prg code and dbf structures. I need help to start this process in HMG. Is there a user manual and tutorials on how? I have tried to get started with HMG but no success.
George Rae - gfrae@comcast.net

Javier Tovar
Posts: 1274
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México
Has thanked: 1 time
Been thanked: 2 times

Post by Javier Tovar » Tue Mar 04, 2014 8:00 pm

Hi gfrae,

Not long ago I started to meet HMG and what has helped me is to go running the examples that come with HMG / SAMPLES and reviewed the *. PRG and I made ​​an example to go see if I comprising examples.

Also find help on this: http://www.fivetechsoft.com/harbour-docs/harbour.html" onclick="window.open(this.href);return false;

http://harbourminigui.com/" onclick="window.open(this.href);return false;

or in the IDE Reference Menu / Help.


From what I've read in other post it is a matter of understanding that a "GET" is now a "TextBox" or a "SAY" is now a "Label" etc..

Posteala any questions in the forum and there will always be someone who can guide you. Always upload a complete example, together with its *. PRG's, *. DBF's, *. NTX, *. CDX, image, etc..

Cheers and Good Luck!

Javier Tovar
Posts: 1274
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México
Has thanked: 1 time
Been thanked: 2 times

Post by Javier Tovar » Tue Mar 04, 2014 8:18 pm

Hello gfrae,

It is best to start with: or in the IDE Reference Menu / Help.

regards

User avatar
esgici
Posts: 4363
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 247 times
Been thanked: 91 times
Contact:

Post by esgici » Tue Mar 04, 2014 10:03 pm

gfrae wrote:I have a complete Clipper application (.prg's) interfacing with .dbf databases that I wrote and successfully deployed in 1993. I now wish to reactivate that application. I have all the original .prg code and dbf structures. I need help to start this process in HMG. Is there a user manual and tutorials on how? I have tried to get started with HMG but no success.
George Rae - gfrae@comcast.net
Hello George

Welcome aboard :)

In addition to Javier's advices, I invite you to my humble blog.

Articles in Migration DOS to Windows section of How can I do page may be helpful to you.

Also there is a good example in this article of our friend Raumi.

A last note : Harbour reference of our friend Giovanni is the best for now :arrow:

Happy HMG'ing :D
Viva INTERNATIONAL HMG :D

User avatar
danielmaximiliano
Posts: 2052
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 90 times
Been thanked: 14 times
Contact:

Post by danielmaximiliano » Tue Mar 04, 2014 11:39 pm

Hello George

Welcome From Buenos Aires Argentina.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`.HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. : +54901169026142
Telegram Name : DaNiElMaXiMiLiAnO

User avatar
Rathinagiri
Posts: 5181
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 142 times
Been thanked: 131 times
Contact:

Post by Rathinagiri » Wed Mar 05, 2014 5:48 am

Hi,

Welcome to HMG Forum.

If you want to run the same application in text mode you can do so with the same existing clipper code provided if you had not used any external libraries.

If you want to convert the application to GUI mode, then you have to convert you code to HMG where ever there are user interface in your existing code.

Here we are to help you if you need anything in particular.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
serge_girard
Posts: 1907
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 319 times
Been thanked: 74 times
Contact:

Post by serge_girard » Wed Mar 05, 2014 12:21 pm

George, Welcome from Belgium!

Serge

Kamjani
Posts: 1
Joined: Mon Mar 17, 2014 5:28 pm

Post by Kamjani » Sun Mar 23, 2014 12:30 pm

I have also a complete Clipper application (.prg's) interfacing with .dbf databases from 1994 and now wish to reactivate that application. I have also all original .prg code and dbf structures , I have make new exe file with hb30 and I can read all from DBF files but when I try to add new records I have problem . I need help to start this program in HMG. I have try to get started with HMG but no success...any help pls..there is my contact email.
ecc.mjonuzi@gmail.com

User avatar
mustafa
Posts: 603
Joined: Fri Mar 20, 2009 11:38 am
Location: Alicante - Spain
Been thanked: 47 times

Post by mustafa » Sun Mar 23, 2014 1:27 pm

Hello
Within HMG package ---> hmg.3.2 looking into folder \SAMPLES
compiled and if you do not use the IDE can compiled
directly with a Bat file from cmd (Dos) I normally do
Bat like this one -----> build.3.2.bat and put inside :

@ECHO OFF
call c:\hmg.3.2\build.bat main %*

1º main prg would my application ---> main.prg
ie as seal me inside the Bat but without extension example clientes.prg
output:
 
@ECHO OFF
call c:\hmg.3.2\build.bat clientes %*

in the main PRG always go

 # include " hmg.ch "
Function Main

followed by a main window example Form_1
 
 DEFINE WINDOW Form_1 ;
                AT 0,0 ;
WIDTH 500 HEIGHT 450;
TITLE " Hello World" ;
                BACKCOLOR { 211,218,236 } ;
MAIN NOMAXIMIZE

               KEY ACTION ON ESCAPE ThisWindow.Release

                @ 050 , 200 Label_1 LABEL VALUE ' Hello World' ;
               WIDTH 300 HEIGHT 18 FONT "Arial" SIZE 9 BOLD ITALIC BACKCOLOR {211,218,236 }

END WINDOW
       
WINDOW CENTER Form_1
            ACTIVATE WINDOW Form_1

Return

this would be the source code

Code: Select all


 #include "hmg.ch"
  Function Main
 
 DEFINE WINDOW Form_1                  ;  
             AT 0,0                              ;
	    WIDTH 500 HEIGHT 450         ;
	    TITLE  " Hello World"              ;
             BACKCOLOR { 211,218,236 } ;
	    MAIN NOMAXIMIZE         

             ON KEY ESCAPE ACTION ThisWindow.Release

@ 050, 200 LABEL Label_1 VALUE "Hello World" ;
               WIDTH 300 HEIGHT 18  FONT "Arial" SIZE 12 BOLD ITALIC BACKCOLOR  {211,218,236 }


 
@ 200,225 BUTTON Exit_Program            ;        
                CAPTION 'Exit'                     ;
                WIDTH 70 HEIGHT 63            ; 
                 ACTION  Form_1.Release 

END WINDOW

           CENTER WINDOW Form_1
           ACTIVATE WINDOW Form_1

Return Nil


Regars, Salam
Mustafa :D

User avatar
esgici
Posts: 4363
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 247 times
Been thanked: 91 times
Contact:

Post by esgici » Sun Mar 23, 2014 1:50 pm

Kamjani wrote:I have also a complete Clipper application (.prg's) interfacing with .dbf databases from 1994 and now wish to reactivate that application. I have also all original .prg code and dbf structures , I have make new exe file with hb30 and I can read all from DBF files but when I try to add new records I have problem . I need help to start this program in HMG. I have try to get started with HMG but no success...any help pls..there is my contact email.
ecc.mjonuzi@gmail.com
Hi Kamjani

Welcome aboard :)

In addition to advices of our friend Mustafa, I repeat to you too above suggestions to George Rae.

Regarding .dbf file differences between Clipper and Harbour, I hope that this topic will give you an idea.

And please don't hesitate to ask anything, here we have too many resourceful and helpful friends 8-)

Happy HMG'ing :D
Viva INTERNATIONAL HMG :D

Post Reply