I have string, in this form : folders = "{string1;string2;string3}". Each string(NR) represents the name of a directory. I have another variable, root, which holds the root path of the folder which contains the items in variable "folder". How can I initialize another variable, "fullPathFolders" of type List (Of String) with the values from variable "folders", having the root path appended to each string in the variable "folders"?
So I want something like this:
fullPathFolders = {rootPath + string1, rootPath + string2,rootPath + string3}
And I was wondering if something like this can be done:
Dim fullPathFolders As List(Of String) = From {rootPath & fullPathFolders}
since it seems to me that it would be faster and easier than the classic method of using the String.Split method (or its equivalent in vb) and then parsing through the list of strings and adding manually at the beginning of each string the root path.