Results 1 to 4 of 4

Thread: [RESOLVED] Function to remove a underscore in VB6?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2001
    Posts
    313

    Resolved [RESOLVED] Function to remove a underscore in VB6?

    Is there a function to remove an underscore in VB6?
    For e.g
    1234_45
    change it to 123445.

    Thanks a lot

  2. #2
    PowerPoster BruceG's Avatar
    Join Date
    May 2000
    Location
    New Jersey (USA)
    Posts
    2,657

    Re: Function to remove a underscore in VB6?

    mystring = replace(mystring, "_", "")
    "It's cold gin time again ..."

    Check out my website here.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2001
    Posts
    313

    Re: Function to remove a underscore in VB6?

    Quote Originally Posted by BruceG
    mystring = replace(mystring, "_", "")
    thanks a lot. But got an error "overflow"

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2001
    Posts
    313

    Re: Function to remove a underscore in VB6?

    Quote Originally Posted by lucia
    thanks a lot. But got an error "overflow"
    Sorry. It works. It is my fault to not declare it right.

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