Results 1 to 3 of 3

Thread: [RESOLVED] How can I split a string and get the value of the entire other side?

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2018
    Posts
    13

    Resolved [RESOLVED] How can I split a string and get the value of the entire other side?

    I have a string in the application, the strings contents are "value1 | value2".

    I've been using this code to split it using spaces and to the 2nd so I get value 2 (that may have been worded weird sorry):
    Code:
    Dim sString As String = "value1 | value2"
    Dim split As String = sString.Split(" ")(2)
    The problem with this is, I've realized most of the value2 values will have multiple spaces and things for that side of the value. How should I go about getting the right sides contents even with multiple spaces?

    Edit: Fixed I just used sString.Split("|")(1)
    Last edited by ExoTiic; Dec 27th, 2019 at 11:08 PM.

Tags for this Thread

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