Hello everyone I don't know how I can put the values I get from the list into String() format.
This is my current code:
Private files As String()
files = New String() {
"00", "01", "02", "03", "04", "05", "06", "07",
"08", "09", "0A", "0B", "0C", "0D", "0E", "0F",
"10", "11", "12", "13", "14", "15", "16", "17",
"18", "19", "1A", "1B", "1C", "1D", "1E", "1F",
"20", "21", "22", "23", "24", "25", "26", "27",
"28", "29", "2A", "2B", "2C", "2D", "2E", "2F",
"30", "31"}
Dim vals As New List(Of String)()
Dim Counter As Integer
For Counter = 1 To 5
vals.Add(Counter.ToString)
Next
files = String.Join(",", vals) 'I'm getting an error here that I can't convert String to String ()
I want to finally bob this result: files = new String() {"1","2","3","4","5"}
Thank you all for your help
String.Joinreturns aString.valsis already aList(Of String). Maybe you want.ToArray(). Or what do you want?Enumerable.Rangeaccepts twoIntegers. It doesn't accept strings.