.... BTW, this same change applies to those other pages Rick referred you to
but which I haven't had the opportunity to change as yet. Just switch the
API used to retrieve the LCID.
--
Randy Birch
MVP Visual Basic
http://vbnet.mvps.org/
Please respond only to the newsgroups so all can benefit.
"Randy Birch" <rg************@mvps.org> wrote in message
news:rK**********************@twister01.bloor.is.n et.cable.rogers.com...
: Hi H ...
:
: The currency code at
http://vbnet.mvps.org/code/locale/localecurrency.htm
: does work ... I understand you can't get it working on your XP SP2 box?
:
: I have the same setup as you -- I just installed XP SP2 last night. When
I
: saw Rick's referral to this link earlier tonight I wanted to make sure it
: worked as well, and actually created the demo from the site. Other than it
: having a duplicate Option Explicit statement the code there does work on
all
: VB5 and VB6 systems - so the OS version or SP is not a factor.
:
: Note that Windows has two different settings for Regional preferences --
: those for the system, based on the locale installed and Windows version,
and
: those for the user. This is what lets you install a US version of Windows
: but set the system to have British monetary and other settings. Or install
: German Windows and customize for Dutchman. (I have the US version, but am
: set up as Canadian - we have a lot more vowels <vbg>).
:
: Because of these different locale settings there are two LCIDs for the
: system. The page you downloaded used an API called GetSystemDefaultLCID
: which not surprisingly retrieves the system setting I mentioned. If you
have
: a US Windows and did not customize this, US data would be returned. The
: sister API is GetUserDefaultLCID which retrieves the settings for the
: current user, and which is now shown on the new page I just uploaded
: tonight. (There's actually a third Locale - the locale the current thread
is
: executing in retrieved using GetThreadLocale. That API is defined on that
: page but not used in the demo.)
:
: See if you get the expected results with the new code, and post back here
: with the results
:
: --
:
: Randy Birch
: MVP Visual Basic
:
http://vbnet.mvps.org/
: Please respond only to the newsgroups so all can benefit.
:
:
: "H" <H@opijpoijpoij.com> wrote in message
: news:CD********************@karoo.co.uk...
:: Hi All,
::
:: Is it possible to detect a users regional settings, in particular -
:: Currency?
::
:: Thanks!
::
:: Hellen.
::
::
:: ---
:: Outgoing mail is certified Virus Free.
:: Checked by AVG anti-virus system (
http://www.grisoft.com).
:: Version: 6.0.735 / Virus Database: 489 - Release Date: 06/08/2004
::
::
: