Read Regional Settings - Decimal, Thousands Separators etc

Example scripts and tips (replaces Old Scripts & Tips archive)

Moderators: Dorian (MJT support), JRL, Phil Pendlebury

Post Reply
User avatar
Marcus Tettmar
Site Admin
Posts: 7378
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Read Regional Settings - Decimal, Thousands Separators etc

Post by Marcus Tettmar » Wed Sep 16, 2015 9:29 am

Regional settings are stored in the registry under HKCU\Control Panel\International. Have a look to see what values you can retrieve. This code retrieves the current decimal and thousands separators:

Code: Select all

RegistryReadKey>HKEY_CURRENT_USER,Control Panel\International,sDecimal,strDecimalSep
RegistryReadKey>HKEY_CURRENT_USER,Control Panel\International,sThousand,strThousandSep

MessageModal>Decimal Separator is: %strDecimalSep% %CRLF%Thousand Separator is: %strThousandSep%
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts