Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mix up in CultureInfo
Message
De
09/09/2015 08:54:52
 
 
À
09/09/2015 04:58:51
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:
01624392
Vues:
42
>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.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform