VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



The fastest way to remove every instance of a string from another string, in 3 lines of code.

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 remove every instance of a string from another string, in 3 lines of code.

Rate The fastest way to remove every instance of a string from another string, in 3 lines of code.




    '<<SC Parameters:
    '<<SC strOriginalString = String from which you want to remove the "strRemoveString"
    '<<SC strRemoveString = String to remove
    
    Dim strTemp() As String
    
    strTemp = Split(strOriginalString, strRemoveString)
    
    RemoveCharacter = Join(strTemp, "")
    
End Function


Download this snippet    Add to My Saved Code

The fastest way to remove every instance of a string from another string, in 3 lines of code. Comments

No comments have been posted about The fastest way to remove every instance of a string from another string, in 3 lines of code.. Why not be the first to post a comment about The fastest way to remove every instance of a string from another string, in 3 lines of code..

Post your comment

Subject:
Message:
0/1000 characters