Article View: borland.public.cppbuilder.internationalization
Article #172Re: Regional Settings (Once or Lots)
From: caleb
Date: Mon, 03 Apr 2006 18:17
Date: Mon, 03 Apr 2006 18:17
58 lines
1955 bytes
1955 bytes
"caleb" <n@spam.com> wrote: > >Question >-------- > >How can I change the regional settings -- that is just one time >in the application? > >If I use: >ShortDateFormat = "dd/mm/yyyy"; > >In one function does it have to be stated again in another f(); > >My problem >---------- > >If the user has the Windows regional settings to some other >countries, then they receive an error message like: ><___> is not a valid floating point number ><___> is not a valid date and time > > >My Question >----------- > >Can I set the variables like ShortDateFormat once only or do >they have to be set in functions throughout the application? > >Please provide example if possible where you have an English >(USA) code project that is used once or in every f(). > >Pardon my English. > >Thanks, > >Caleb Hi: I tried : setlocale( LC_ALL , "English_United States.437" ); but the program still gave a not a valid floating point error. The field was "1,3" instead of "1.3" If I use : DecimalSeparator = '.'; Is it a permanent change or does the statement have to be repeated in each f() that has float values? Thank you Caleb
Technical Details
Message-ID:
<443166ad$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<443154db$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10297d,d7065170027a26ac X-Google-Attributes: gid10297d,public X-Google-Language: ENGLISH,ASCII-7-bit From: "caleb" <n@spam.com> Sender: "caleb" <n@spam.com> Reply-To: "caleb" <n@spam.com> Subject: Re: Regional Settings (Once or Lots) Newsgroups: borland.public.cppbuilder.internationalization X-User-Info: 71.99.27.59 References: <443154db$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <443166ad$1@newsgroups.borland.com> Date: 3 Apr 2006 11:17:17 -0700 X-Trace: newsgroups.borland.com 1144088237 207.105.83.66 (3 Apr 2006 11:17:17 -0700) Lines: 60 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail