VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



The fastest way to replace every instance of a string with another string

by SC (2 Submissions)
Category: String Manipulation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sat 21st September 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

The fastest way to replace every instance of a string with another string

Rate The fastest way to replace every instance of a string with another string




    '<<SC Parameters:
    '<<SC strOriginalString = String from which you want to remove the "strRemoveString"
    '<<SC strReplaceString = String to replace
    '<<SC strAddString = string to Add
    
    Dim strTemp() As String
    
    strTemp = Split(strOriginalString, strReplaceString)
    
    ReplaceCharacter = Join(strTemp, strAddString)
    
End Function

Download this snippet    Add to My Saved Code

The fastest way to replace every instance of a string with another string Comments

No comments have been posted about The fastest way to replace every instance of a string with another string. Why not be the first to post a comment about The fastest way to replace every instance of a string with another string.

Post your comment

Subject:
Message:
0/1000 characters