Jump to content
Registration disabled at the moment Read more... ×
msd

Custom Regional Settings

Recommended Posts

Hello,

 

I have a lot of problems with different FormatSetting and Delphi apps; most of them are using dot on numeric keyboards and at the dot at the end of datetime, and I have small problems with the thousand separator.

Does Delphi support some kind of isolated Format Settings where I can set my custom Date, Time, DateTime, Decima, Thusand separator, and so. on?

In this scenario, the user can set isolated settings for the app, no matter how Windows works, and the user can use, for example, the pain problem. (dot) on a numeric keyboard.

Now that I have dbEdit connected to FloatField and the user input is 123.45, it converts to 12345.00. Another problem is 123,345.67. I get invalid floatpoint values.

 

Thanks for any advice and information in advance.

Share this post


Link to post

Look up TFormatSettings. Many, possibly all, formatting functions accept such a variable as additional parameter.

This doesn't change the way input into controls works though.

Edited by dummzeuch

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×