Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
From System.Collections.Generic.IEnumerable to string
Message
From
06/05/2015 08:17:14
 
 
To
05/05/2015 20:19:10
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01619437
Message ID:
01619459
Views:
31
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform