Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
From System.Collections.Generic.IEnumerable to string
Message
De
06/05/2015 08:17:14
 
 
À
05/05/2015 20:19:10
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01619437
Message ID:
01619459
Vues:
30
>Set the Seperator variable to whatever you want and you should be good to go!
>
>
>Dim TestList As New List(Of String) From {"1", "2", "3", "4", "5"}
>Dim Seperator As String = ", "
>Dim Result As String = String.Join(Seperator, TestList.ToArray())
>'Result = "1, 2, 3, 4, 5"
>
When the separator is not known, is it safer to go with:
For Each lcString In loString
Next
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
Répondre
Fil
Voir

Click here to load this message in the networking platform