Clipper conversion
Moderator: Rathinagiri
Clipper conversion
Hello everyone. This is my first posting so forgive me if I'm getting it wrong. I am using HMG to update an ancient Clipper 5.2 application. Most of it works pretty well, but I am hitting one major problem. Who / where is the best palce to ask about this?
Re: Clipper conversion
Welcome,
Who := All
Where := Here
Just post your query, to get solution, before the ink dries
Regards,
Anand
- esgici
- Posts: 4543
- Joined: Wed Jul 30, 2008 9:17 pm
- DBs Used: DBF
- Location: iskenderun / Turkiye
- Contact:
Re: Clipper conversion
Viva INTERNATIONAL HMG
Re: Clipper conversion
Ok: here goes. This is either an FAQ or weird.
The application opens fine in a medium window, but as soon as any new data is input and <Return> is pressed, it moves the screen up out of sight. Eg:
* Trial program
*
PROCEDURE MAIN
REQUEST HB_GT_WIN_DEFAULT
CLS
@1,1 TO 23,78 DOUBLE
ANS:=" "
@12,12 SAY "How are you?"
@12,25 GET ANS
READ
RK:=INKEY(0)
RETURN
Any suggestions?
The application opens fine in a medium window, but as soon as any new data is input and <Return> is pressed, it moves the screen up out of sight. Eg:
* Trial program
*
PROCEDURE MAIN
REQUEST HB_GT_WIN_DEFAULT
CLS
@1,1 TO 23,78 DOUBLE
ANS:=" "
@12,12 SAY "How are you?"
@12,25 GET ANS
READ
RK:=INKEY(0)
RETURN
Any suggestions?
- serge_girard
- Posts: 3166
- Joined: Sun Nov 25, 2012 2:44 pm
- DBs Used: 1 MySQL - MariaDB
2 DBF - Location: Belgium
- Contact:
Re: Clipper conversion
Hi Templar,
Welcome from Belgium.
Maybe this helps:
Serge
Welcome from Belgium.
Maybe this helps:
Code: Select all
#include "hmg.ch"
PROCEDURE MAIN
REQUEST HB_GT_WIN_DEFAULT
CLS
@1,1 TO 23,78 DOUBLE
ANS:=" "
@12,12 SAY "How are you?"
@12,25 GET ANS
READ
//RK := INKEY(0)
? ans
wait""
RETURN
There's nothing you can do that can't be done...
Re: Clipper conversion
Hello Templar,
Greetings from Poland.
In my opinion, this should solve your issue:
Edward.
Greetings from Poland.
In my opinion, this should solve your issue:
Code: Select all
PROCEDURE MAIN
REQUEST HB_GT_WIN_DEFAULT
SetMode(25,80)
CLS
@1,1 TO 23,78 DOUBLE
ANS:=" "
@12,12 SAY "How are you?"
@12,25 GET ANS
READ
RK:=INKEY(0)
RETURN
Re: Clipper conversion
You, Sir, are a genius! That works perfectly. Thank you.
Re: Clipper conversion
Hi Serge,
Thanks for that suggestion, but in fact Edk's solution worked better. Thanks for the help, though.
As a amtter of interest, you suggest including "hmg.ch" What is in that?
Thanks for that suggestion, but in fact Edk's solution worked better. Thanks for the help, though.
As a amtter of interest, you suggest including "hmg.ch" What is in that?
- serge_girard
- Posts: 3166
- Joined: Sun Nov 25, 2012 2:44 pm
- DBs Used: 1 MySQL - MariaDB
2 DBF - Location: Belgium
- Contact:
Re: Clipper conversion
Alan,
You will need hmg.ch in every program you will compile with the HMG IDE. These are definitions for HMG.
Serge
You will need hmg.ch in every program you will compile with the HMG IDE. These are definitions for HMG.
Serge
There's nothing you can do that can't be done...