Re: Problem with locale
From: Max Kudrenko (vb_mvp_at_hotmail.com)
Date: 02/07/05
- Next message: Khai: "Re: Delete a field in a random access file"
- Previous message: Brad M.: "Re: Getting Age from Date of Birth"
- In reply to: Ivan: "Problem with locale"
- Next in thread: Ivan: "Re: Problem with locale"
- Reply: Ivan: "Re: Problem with locale"
- Messages sorted by: [ date ] [ thread ]
Date: 7 Feb 2005 03:38:22 -0800
Ivan,
If you use your app in Germany, you should have German locale and CDbl
will always recognize it. Type Conversion Functions are internationally
aware and work properly for any one locale. So your problem isn't quite
clear as both the app and the user will treat all the formating the
same way which is the expected behaviour.
Max Kudrenko
Brainbench MVP Program for Visual Basic
www.brainbench.com
Ivan wrote:
> Hi,
> I have the following problem:
> I read a numeric (double) value stored in simple text file (i.e
"2.25") and
> convert it to a double using CDbl. Works fine until used on a client
with
> non-english locale. For example, if German locale is set, which uses
(,) as a
> decimal separator and (.) as a group separator, then the CDbl returns
> (correctly, I guess) 225. Is there any straightforward way to deal
with this
> (besides changing locales back and forth, or detecting locales and
> manipulating the string?)
> Thanks,
> Ivan
- Next message: Khai: "Re: Delete a field in a random access file"
- Previous message: Brad M.: "Re: Getting Age from Date of Birth"
- In reply to: Ivan: "Problem with locale"
- Next in thread: Ivan: "Re: Problem with locale"
- Reply: Ivan: "Re: Problem with locale"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|