Testing Culture settings

  • Thread starter Thread starter Jack Russell
  • Start date Start date
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
 
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
 
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
 
Back
Top