Results 1 to 3 of 3

Thread: String Question

  1. #1

    Thread Starter
    Member
    Join Date
    May 2009
    Posts
    35

    String Question

    .......
    Last edited by InviSible_Master; Jun 4th, 2009 at 02:26 AM.

  2. #2
    PowerPoster keystone_paul's Avatar
    Join Date
    Nov 2008
    Location
    UK
    Posts
    3,327

    Re: String Question

    If you are talking generic code you can use the LastIndexOf function of the string class to calculate the position of the last backslash, and then the Substring function to get just those characters following it :

    myString.Substring(0, x.LastIndexOf("\"c))

  3. #3
    PowerPoster keystone_paul's Avatar
    Join Date
    Nov 2008
    Location
    UK
    Posts
    3,327

    Re: String Question

    Don't mention it.

    Oh that's right you didn't, you just deleted your question.

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