String

Tech-Archive recommends: Fix windows errors by optimizing your registry



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

.



Relevant Pages

  • Re: hex int and string
    ... and i need to trasform in 0xd3 type int and not type string how i can ... http://www.mbthome.net/ mbt shoes ...
    (comp.lang.python)
  • Re: hex int and string
    ... str = 'D3' ... and i need to trasform in 0xd3 type int and not type string how i can ...
    (comp.lang.python)
  • hex int and string
    ... str = 'D3' ... and i need to trasform in 0xd3 type int and not type string how i can ...
    (comp.lang.python)