Results 1 to 4 of 4

Thread: Replace comma

  1. #1

    Thread Starter
    Hyperactive Member maxl's Avatar
    Join Date
    Jan 2002
    Location
    Montréal
    Posts
    384

    Replace comma

    I want to know if there is a comma in a string and if yes replace it with a dot ".". I could probably figure this out by myself but i'"m to tiredor lazy

  2. #2
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950
    Use the Replace function.
    VB Code:
    1. Replace YourString, "," , "."

  3. #3
    Frenzied Member trisuglow's Avatar
    Join Date
    Jan 2002
    Location
    Horsham, Sussex, UK
    Posts
    1,536
    How about using the Replace() function?

    VB Code:
    1. str = Replace(str, ",", ".")
    This world is not my home. I'm just passing through.

  4. #4

    Thread Starter
    Hyperactive Member maxl's Avatar
    Join Date
    Jan 2002
    Location
    Montréal
    Posts
    384
    thanks I didn't knew that function

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