Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > microsoft.public.scripting.vbscript > #11164
| Newsgroups | microsoft.public.scripting.vbscript |
|---|---|
| Date | 2015-10-29 11:29 -0700 |
| References | <2t4bh110voef4nnjfolupcpg49djf195g9@4ax.com> <ORAiLkzrFHA.2604@TK2MSFTNGP14.phx.gbl> |
| Message-ID | <e1f0a3c4-623e-490a-b81c-f98f9d2ba227@googlegroups.com> (permalink) |
| Subject | Re: Re: How to read system regional settings? |
| From | desaulniers.martin@gmail.com |
Le jeudi 1 septembre 2005 17:06:37 UTC-4, BC a écrit :
> Hi Jerold,
>
> HKEY_CURRENT_USER and HKCU gives the same result. However I have found
> out why.
>
>
> Cheers,
>
> Benny
>
> *** Sent via Developersdex http://www.developersdex.com ***
For VbScript et Asp page (use session. on asp) you can use the "locale" object :
Here is a VBS démo :
' Regional setting
WriteToFile logFile, "Regional Setting before : " & GetLocale()
SetLocale("fr-ca") 'SetLocale(0) ' system default
WriteToFile logFile, "Regional Setting after : " & GetLocale()
WriteToFile logFile, " (4105 = en-ca, 3084 = fr-ca, for other refer to http://www.devguru.com/technologies/vbscript/13928)"
Greetings.
Back to microsoft.public.scripting.vbscript | Previous | Next | Find similar
Re: Re: How to read system regional settings? desaulniers.martin@gmail.com - 2015-10-29 11:29 -0700
csiph-web