Ben Clarke Ben Clarke - 6 months ago 36 Question

How to join strings from a list together in one string?


I have a list of strings which could be anything from 1 to 25 strings long. I want to get the values off each index and add them a string so that I can send an email listing the values in the list.

Here is the list of strings:


So i want to loop through these and add them to one single string (string below). The list above is not always going to be 26 strings long.

Dim files as string

How am i best to do this?


It is a simple string.Join

fileList = string.Join("", DataSyncFiles)

The first parameter is the separator to use between the single elements of DataSyncFiles. If you don't need it just pass an empty string or Nothing