VB.NET – fonction de séparateur de millier sur le Leave malgré la région

Function separateurDeMillier(entree As String) As String

Dim al As New ArrayList

For Each s In entree



Dim resultat As String = “”

Dim count As Integer = 0

For i = al.Count – 1 To 0 Step -1

resultat = resultat.Insert(0, al(i))

If al(i) <> “,” And al(i) <> “.” Then

Select Case count

Case 3

resultat = resultat.Insert(0, ” “)

count = 0

End Select


count = 0

End If

If count <= 3 Then

count += 1

End If


Return resultat

End Function


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s