VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



A Non-CapsSensetive Way To Find String One Inside The String Two And Replace It With String Three.

by SupahFly (2 Submissions)
Category: String Manipulation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Fri 18th October 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

A Non-CapsSensetive Way To Find String One Inside The String Two And Replace It With String Three. I Submited This Code Because All The Other

Rate A Non-CapsSensetive Way To Find String One Inside The String Two And Replace It With String Three.



Dim I As Byte
I = 1
Dim LeftPart
Do While True
I = InStr(1, UCase$(Entire), UCase$(Word))
If I = 0 Then
Exit Do
Else
LeftPart = Left(Entire, I - 1)
Entire = LeftPart & NewWord & Right(Entire, Len(Entire) - Len(Word) - Len(LeftPart))
End If
Loop
Text1.Text = Entire
End Sub

Private Sub Command1_Click()
RemoveString "String Two", "String One", "String Three"
End Sub

Download this snippet    Add to My Saved Code

A Non-CapsSensetive Way To Find String One Inside The String Two And Replace It With String Three. Comments

No comments have been posted about A Non-CapsSensetive Way To Find String One Inside The String Two And Replace It With String Three. . Why not be the first to post a comment about A Non-CapsSensetive Way To Find String One Inside The String Two And Replace It With String Three. .

Post your comment

Subject:
Message:
0/1000 characters