Via Lattanzio,23 Milano
+39 02 36592025
info@synaptica.info

Delphi …. retrive locale format setting

Delphi …. retrive locale format setting

TFormatsettings is record type in Delphi which is used to get or set local information’s like DateTimeFormat, CurrencyFormat, DecimalSeparator etc. wich is declared in System.SysUtils.

For Example you need to retrive your current DecimalSeparator:

If you need to force some local settings for conversions you can do for example:

If you want to change only one setting, starting from a particular configuration you can use the “create” constructor like: