Results 1 to 3 of 3

Thread: Removing specific chars from a string.

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2005
    Posts
    124

    Arrow Removing specific chars from a string.

    Hi guys. Long time since I've been here, but now I require help.

    I have an issue where I want to remove a specific character from a string. I have a string which stores a part of a split string. In my test that value was 2' and I need to get rid of the ' part of the string since I cannot CInt the string with it in there. Now there really is no limit to how many integers I can have before the ' and I have a feeling that this info will come in handy. Thanks for any help.
    I never know what to put in this section...



    So sue me... ... ... I'm just kidding...


    www.fat-pie.com Flash Movies... You gotta see 'em to believe 'em!

  2. #2
    Fanatic Member Mr.No's Avatar
    Join Date
    Sep 2002
    Location
    Mauritius
    Posts
    651

    Re: Removing specific chars from a string.

    VB Code:
    1. value1 = value1.Replace("'","")
    Using VB.NET 2003/.NET 1.1/C# 2.0
    http://del.icio.us/rajoo
    Blow your mind, smoke gunpowder
    Ashes to ashes, dust to dust
    If God won't have you, the devil will. - Author unknown
    Don't follow me, I'm lost too ...

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2005
    Posts
    124

    Re: Removing specific chars from a string.

    Thanks! You're a champion
    I never know what to put in this section...



    So sue me... ... ... I'm just kidding...


    www.fat-pie.com Flash Movies... You gotta see 'em to believe 'em!

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