Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mix up in CultureInfo
Message
De
10/09/2015 02:44:26
 
 
À
09/09/2015 08:54:52
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01624382
Message ID:
01624431
Vues:
40
>>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 ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform