Results 1 to 3 of 3

Thread: Regional Settings

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Location
    Granby, Qc, Canada
    Posts
    602

    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?

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Location
    Granby, Qc, Canada
    Posts
    602

    Re: Regional Settings

    Anyone got an idea ?

  3. #3
    Addicted Member
    Join Date
    May 2005
    Posts
    168

    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
  •  



Click Here to Expand Forum to Full Width