Testing Culture settings

J

Jack Russell

If I set my culture to French with
Thread.CurrentThread.CurrentUICulture = New CultureInfo("fr-FR")
then write a string using tostring it does not use the French separator
(comma) but instead uses my local separator (point).

If I look at the separator in culture info it is a comma. Is there
something I need to know about tostring?

Thanks

Jack Russell
 
C

Cor Ligthert [MVP]

Jack,

There are two currentculture, the CurrentCulture and the CurrentUICulture.

\\\set culture
Dim myCIintl As New System.Globalization.CultureInfo("nl-NL")
Application.CurrentCulture = myCIintl
'or
Thread.CurrentThread.CurrentCulture = New CultureInfo("en-US")
///

I hope this helps,

Cor
 
J

Jack Russell

Cor said:
Jack,

There are two currentculture, the CurrentCulture and the CurrentUICulture.

\\\set culture
Dim myCIintl As New System.Globalization.CultureInfo("nl-NL")
Application.CurrentCulture = myCIintl
'or
Thread.CurrentThread.CurrentCulture = New CultureInfo("en-US")
///

I hope this helps,

Cor
Thanks Cor, It is the weekend down here in Australia nut I will take a
look at that ASAP

Jack
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top