Jump to content

Regional Settings Detection Problem


harryh
 Share

Recommended Posts

Hi,

I like to adapt my script for use in all countries. In order to do so, I need to know Currency Symbol, Decimal Separator and Thousands Separator. in accordance with Windows Control Panel settings:

The following code works fine with WindowsXP but not with Windows98SE.

;Check the Decimal, Thousands separator and Currency Symbol in accordance with Regional Settings
 
 $IntDecSep = RegRead("HKEY_CURRENT_USER\Control Panel\International", "sDecimal")
 $Int1000Sep = RegRead("HKEY_CURRENT_USER\Control Panel\International", "sThousand")
 $IntCurSym = RegRead("HKEY_CURRENT_USER\Control Panel\International", "sCurrency")

Can somebody tell me how to obtain regional settings for other versions of Windows such as Win98SE?

harryh

Link to comment
Share on other sites

  • 2 weeks later...

I used RegShot to observe these keys:

My values (on WIN98SE):

$IntDecSep = RegRead("HKEY_USERS\.DEFAULT\Control Panel\International", "sDecimal")

$Int1000Sep = RegRead("HKEY_USERS\.DEFAULT\Control Panel\International", "sThousand")

$IntCurSym = RegRead("HKEY_USERS\.DEFAULT\Control Panel\International", "sCurrency")

Your original:

;Check the Decimal, Thousands separator and Currency Symbol in accordance with Regional Settings

$IntDecSep = RegRead("HKEY_CURRENT_USER\Control Panel\International", "sDecimal")

$Int1000Sep = RegRead("HKEY_CURRENT_USER\Control Panel\International", "sThousand")

$IntCurSym = RegRead("HKEY_CURRENT_USER\Control Panel\International", "sCurrency")

Edited by Zedna
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...