Hi folks,
first of all a big "thank you" to the developers of HMG and all other involved people !!!
Currently I'm trying to solve a problem associated with a german characteristic:
In Germany numeric values have the decimal separator ',' and not '.' like in most
parts of the world. The german thousands separator is "." and not "," like usual.
Example:
in Germany: 1.234.567,89
in USA: 1,234,567.89
So german keyboard have a ',' on the num pad instead of '.'
I'm now playing around with textboxes and its inputmask parameter: When I
define the appropiate texbox property als numeric, I have to use the international
way of entering values, for example via inputmask "999.00". Germans are not
able to use the ',' of their num pads. :-(
When I define the textbox as a character based one I'm able to define an
inputmask like "999.999,99" but I'll have to eval any of such textboxes and to
convert those strings into numericals... :-(
Is there any solution for this behaviour ? Is it possible to tell HARBOUR to use
the german separators ? 'Set Language To German' doesn't seem to work for
this situation...
Thank you in advance,
Fred...
Entering numericals via num pad in Germany
Moderator: Rathinagiri
Re: Entering numericals via num pad in Germany
Hi again,
seeing that noone can help has taken me to have a look into the
user components example. When trying to compile 'demo.prg'
in 'C:\HMG\SAMPLES\USER_COMPONENTS' I get the following
errors:
Harbour 1.0.0 Intl. (Rev. 9175)
Copyright (c) 1999-2008, http://www.harbour-project.org/
Compiling 'demo.prg'...
demo.prg(22) Error E0030 Syntax error: "syntax error at '.'"
demo.prg(23) Error E0030 Syntax error: "syntax error at '.'"
demo.prg(24) Error E0030 Syntax error: "syntax error at '.'"
demo.prg(25) Error E0030 Syntax error: "syntax error at '.'"
demo.prg(34) Error E0030 Syntax error: "syntax error at '@'"
Compiling module 'MyButton.Prg'...
5 errors
No code generated
gcc: demo.c: No such file or directory
gcc: no input files
gcc: demo.o: No such file or directory
C:\HMG\SAMPLES\USER_COMPONENTS\demo.c konnte nicht gefunden werden
C:\HMG\SAMPLES\USER_COMPONENTS\demo.o konnte nicht gefunden werden
So what's wrong with this example ?
TIA,
Fred...
seeing that noone can help has taken me to have a look into the
user components example. When trying to compile 'demo.prg'
in 'C:\HMG\SAMPLES\USER_COMPONENTS' I get the following
errors:
Harbour 1.0.0 Intl. (Rev. 9175)
Copyright (c) 1999-2008, http://www.harbour-project.org/
Compiling 'demo.prg'...
demo.prg(22) Error E0030 Syntax error: "syntax error at '.'"
demo.prg(23) Error E0030 Syntax error: "syntax error at '.'"
demo.prg(24) Error E0030 Syntax error: "syntax error at '.'"
demo.prg(25) Error E0030 Syntax error: "syntax error at '.'"
demo.prg(34) Error E0030 Syntax error: "syntax error at '@'"
Compiling module 'MyButton.Prg'...
5 errors
No code generated
gcc: demo.c: No such file or directory
gcc: no input files
gcc: demo.o: No such file or directory
C:\HMG\SAMPLES\USER_COMPONENTS\demo.c konnte nicht gefunden werden
C:\HMG\SAMPLES\USER_COMPONENTS\demo.o konnte nicht gefunden werden
So what's wrong with this example ?
TIA,
Fred...
Re: Entering numericals via num pad in Germany
Fred,fredmr wrote:...
When trying to compile 'demo.prg'
in 'C:\HMG\SAMPLES\USER_COMPONENTS' I get the following
errors:
...
So what's wrong with this example ?
Take a look for readme.txt at your folder C:\HMG\SAMPLES\USER_COMPONENTS:
I hope that give you an ideas.HMG USER COMPONENTS SAMPLE
--------------------------
To run this sample, please add the following text to c:\hmg\include\usrinit.ch
#define BASEDEF_MYBUTTON
#xcommand @ <row>,<col> MYBUTTON <name> ;
OF <parent> ;
CAPTION <caption> ;
ACTION <action> ;
=>;
_DefineMyButton(<"name">,<row>,<col>,<caption>,<{action}>,<"parent">)
#undef BASEDEF_MYBUTTON
And ADD the following to c:\hmg\include\i_usrsoop.ch without leaving blank
lines between the text currently in that file and this.
#define SOOP_MYBUTTON ;;
#xtranslate <Window> . \<Control\> . Disable => Domethod ( <"Window">, \<"Control"\> , "Disable" ) ;;
#xtranslate <Window> . \<Control\> . Enable => Domethod ( <"Window">, \<"Control"\> , "Enable" ) ;;
#xtranslate <Window> . \<Control\> . Handle => GetProperty ( <"Window">, \<"Control"\> , "Handle" ) ;;
#xtranslate <Window> . \<Control\> . Handle := \<v\> => SetProperty ( <"Window">, \<"Control"\> , "Handle" , \<v\> ) ;;
#undef SOOP_MYBUTTON ;;
Kind Regards,
Grigory Filatov
"Everything should be made as simple as possible, but no simpler." Albert Einstein
Grigory Filatov
"Everything should be made as simple as possible, but no simpler." Albert Einstein
- Rathinagiri
- Posts: 5477
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: Entering numericals via num pad in Germany
Hi,
Please give your code also. Then only we can see what would be the error.
Please give your code also. Then only we can see what would be the error.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
Re: Entering numericals via num pad in Germany
Thank you !
It bas been my fault: I didn't change the usrinit.ch
I didn't carefully read the readme.txt :-(
Currently there's no source code; I only wanted to see
the example, but due to the missing include I couldn't
work.
Thank you again,
Fred...
It bas been my fault: I didn't change the usrinit.ch
I didn't carefully read the readme.txt :-(
Currently there's no source code; I only wanted to see
the example, but due to the missing include I couldn't
work.
Thank you again,
Fred...