Results 1 to 3 of 3

Thread: [RESOLVED] Replace string in string

  1. #1

    Thread Starter
    Addicted Member alexia_net's Avatar
    Join Date
    Jun 2006
    Posts
    216

    Resolved [RESOLVED] Replace string in string

    Hi. I have a small question: how could I replace a substring in a string. For example I have this string "ABCDDDDEFG". I want to replace "DDD" with "54" for example. Is there any command which allows me to do this? Thank you!

  2. #2

    Thread Starter
    Addicted Member alexia_net's Avatar
    Join Date
    Jun 2006
    Posts
    216

    Re: Replace string in string

    Sorry! I have found it. It is REPLACE. Thank you!

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Replace string in string

    Code:
    Dim sString As String
    sString = "ABCDDDDEFG"
    
    sString = Replace(sString,"DDD","54")

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