Sign in to follow this  
Followers 0
harryh

Regional Settings Detection Problem

2 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Share this post


Link to post
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
Sign in to follow this  
Followers 0