C'est un concept que j'essaie de comprendre pour mon programme. Le code suivant a été modifié à des fins d'explication. Espoir mon objectif est clairComment afficher tous les contenus d'une liste?
Dim List As New List(Of String)() 'the size and contents of the list is not constant
Dim test As String
List.Add("Hello")
List.Add("World")
test = Nothing
For Each test In errorsList
Console.WriteLine(test) ' outputs "Hello" and "World"
Next
MsgBox(test) 'Outputs "World"
Comment puis-je avoir test
sortie à la fois "Hello"
et "World"
pour que je puisse l'utiliser plus tard dans mon code?
'String.Join (...)'? – Plutonix