Re: Program to read the regional settings by WP
WP
Fri Apr 25 09:29:24 CDT 2008
Thanks Stefan,
what I like to do is to set at the start of my application the Windows
regional settings to "Spanish (Peru)", and at the end of the application to
set them back to the settings it originally had.
Walter
"Stefan Wuebbe" <stefan.wuebbe@gmx.de> escribió en el mensaje
news:OP5h99ppIHA.2188@TK2MSFTNGP04.phx.gbl...
>
> "WP" <wp_nospam@fibertel.com.ar> schrieb im Newsbeitrag
> news:eUUzqympIHA.1236@TK2MSFTNGP02.phx.gbl...
>>I have 50 computers in my network, and one common thing of all of them is
>>that one of the users is the same. I would like to read the regional
>>settings for this common user and save them into a file on the file
>>server. How can I do this ?
>
> Are you asking from a FoxPro point-of-view, as opposed to a
> Windows Active Directory profile, you probably mean Set('Date'),
> Set('Currency') and so on?
> If so, at runtime when your application starts, everything is set
> to default - then, after you Set SysFormats On, everything is set
> to the current Windows user's regional settings, so you can do
> something like:
> Insert Into yourTable (item, value) Values ( "Date", Set("Date"))
> Insert Into yourTable (item, value) Values ( "Date1", Set("Date",1))
> Insert Into yourTable (item, value) Values ( "Mark", Set("Mark"))
> Insert Into yourTable (item, value) Values ( "Currency",
> Set("Currency"))
> Insert Into yourTable (item, value) Values ( "Currency1",
> Set("Currency",1))
> Insert Into yourTable (item, value) Values ( "Point", Set("Point"))
> Insert Into yourTable (item, value) Values ( "Separator",
> Set("Separator"))
>
> and so on.
> Why do you want to do that?
>
>
> hth
> -Stefan
>
>
>
>
> --
> |\_/| ------ ProLib - programmers liberty -----------------
> (.. ) Our MVPs and MCPs make the Fox run....
> - / See us at www.prolib.de or www.AFPages.de
> -----------------------------------------------------------
>