|
-
Jun 20th, 2005, 09:48 AM
#1
Thread Starter
Fanatic Member
Regional Settings
My application is using French(Canada) for the number which is "," for the decimal sign.
Some users are using English(United States) to have the "." for the decimal sign.
When there's a French(Canada) number like 6,05 in my application, if the user change his settings for English(United States), it shows 605.
How can I deal with the "." and the "," without changing the values of my number?
-
Jun 20th, 2005, 10:51 AM
#2
Thread Starter
Fanatic Member
-
Jun 20th, 2005, 11:01 AM
#3
Addicted Member
Re: Regional Settings
Hi,
You can search this forum using keywords, "regional settings" and you will get a loadful of them. You need to use the API functions:
GetUserDefaultLCID 'to retrieve locale id.
GetLocaleInfo 'to get a particulair setting. Look for API constants.
'I can't remember the currency one...<g>
'Const LOCALE_SHORTDATE = &H1F
'Const LOCALE_STIMEFORMAT = &H1003
Have a good one!
BK
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|