VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Replace one Char With Another inside of a string

by Jason Stoddard (3 Submissions)
Category: String Manipulation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Mon 10th December 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Replace one Char With Another inside of a string

Rate Replace one Char With Another inside of a string



    For x = 1 To Len(Entire)
        If Mid$(Entire, x, 1) = "," Then
            NewWord = NewWord & "_"
        Else
            NewWord = NewWord & Mid$(Entire, x, 1)
        End If
    Next
    MsgBox NewWord
    
End Function

Download this snippet    Add to My Saved Code

Replace one Char With Another inside of a string Comments

No comments have been posted about Replace one Char With Another inside of a string. Why not be the first to post a comment about Replace one Char With Another inside of a string.

Post your comment

Subject:
Message:
0/1000 characters