String
- From: shapper <mdmoura@xxxxxxxxx>
- Date: Tue, 11 Sep 2007 13:52:55 -0700
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
.
- Follow-Ups:
- Re: String
- From: Alexey Smirnov
- Re: String
- From: Stephen
- Re: String
- Prev by Date: Odd Datagrid Behavior
- Next by Date: Re: String
- Previous by thread: Odd Datagrid Behavior
- Next by thread: Re: String
- Index(es):
Relevant Pages
|