Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mix up in CultureInfo
Message
From
10/09/2015 02:44:26
 
 
To
09/09/2015 08:54:52
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01624382
Message ID:
01624431
Views:
41
>>Don't know - unless it's a threading issue. But it seems to me your method is overly complicated - you could just use NumberFormatInfo directly without needing a Culture info:
Public Shared Function GetFormatValue(tnValue As Double, tcSeperator As String, tnDecimal As Integer) As String
>>	Return tnValue.ToString("N", New NumberFormatInfo() With { _
>>		Key .NumberDecimalSeparator = ".", _
>>		Key .NumberGroupSeparator = tcSeperator, _
>>		Key .NumberDecimalDigits = tnDecimal _
>>	})
>>End Function
>
>This will not be the same thing.
>
>Based on the language used of the member's account, we need to set up the culture accordingly so the display, for some settings, will be shown properly. If I just use this, I will not have the 100% exact same representation.

What properties of CultureInfo (other than NumberFormatInfo) affect the returned value ?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform