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

    Choping A String Up

    I would like to know the code for choping up the string "N/A|Steven Craig|1234 Rd.|TheCity|CA|123456" Into an Array. Then be able to call the array and get the info from the string like so:
    ArrayName(0) = N/A
    ArrayName(1) = Steven Craig
    ArrayName(2) = 1234 Rd.
    ArrayName(3) = TheCity
    ArrayName(4) = CA
    Etc...


  2. #2
    Guest

    Re: Choping A String Up


    dim Arrayname() as string
    arrayname=split("N/A|Steven Craig|1234 Rd.|TheCity|CA|123456","|")



    this will split up the string into the array.
    Cheers.


  3. #3
    Guest

    Re: Choping A String Up

    Thanks So Much


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