S
shapper
Hello,
I created a list as follows:
Dim errors As New List(Of String)
Now I added the errors simply by doing so:
errors.Add(error)
Now I need to display all items in this list, in different lines, in a
label:
error1
error2
error3
....
I believe I should loop through each item and create a string.
Between each item I would add a <br /> and use & to add a new error to
the existing string.
Then I would make MyLabel.Text = MyString.
Is this the best way?
Should I use a StringBuilder?
Is there a different way to do this?
I am asking this because I am having problems with the change line
process.
Thanks,
Miguel
I created a list as follows:
Dim errors As New List(Of String)
Now I added the errors simply by doing so:
errors.Add(error)
Now I need to display all items in this list, in different lines, in a
label:
error1
error2
error3
....
I believe I should loop through each item and create a string.
Between each item I would add a <br /> and use & to add a new error to
the existing string.
Then I would make MyLabel.Text = MyString.
Is this the best way?
Should I use a StringBuilder?
Is there a different way to do this?
I am asking this because I am having problems with the change line
process.
Thanks,
Miguel