S
shapper
Hello,
I have a class, Item, with 2 properties:
"ID" of type Int
"Product" of type String
I create a variable which is a Generic.List(Of Item):
Dim items As Generic.List(Of Item)
items.Add(10, "Book")
items.Add(20, "Car")
....
I want to create a string from this generic list that holds all the
items products separated by a comma:
MyItems = "Book,Car,..."
How can I do this?
The easiest way I can find is to create a for loop. But then I need to
remove the last comma.
Anyway, I am not sure if this is the best way to do this.
Thanks,
Miguel
I have a class, Item, with 2 properties:
"ID" of type Int
"Product" of type String
I create a variable which is a Generic.List(Of Item):
Dim items As Generic.List(Of Item)
items.Add(10, "Book")
items.Add(20, "Car")
....
I want to create a string from this generic list that holds all the
items products separated by a comma:
MyItems = "Book,Car,..."
How can I do this?
The easiest way I can find is to create a for loop. But then I need to
remove the last comma.
Anyway, I am not sure if this is the best way to do this.
Thanks,
Miguel