CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: ArrayList

  1. #1
    Join Date
    Sep 2006
    Posts
    392

    ArrayList

    Dear All,
    How to join the array list contents with a separator into a new string

    Dana
    VS 2005

  2. #2
    Join Date
    Jun 2001
    Location
    MO, USA
    Posts
    2,868

    Re: ArrayList

    Use the StringBuilder class, loop thru the list and append each item to the stringbuilder.

  3. #3
    Join Date
    Oct 2005
    Location
    Islamabad, Pakistan
    Posts
    1,277

    Re: ArrayList

    Using Join method of String Class.
    Code:
    String.Join(";", MyArray)
    Code:
    String.Join(";", MyArrayList.ToArray(GetType(String)))

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured