VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Replaces a string (oldw) with desired new string (neww)

by Jason Jaskolka (1 Submission)
Category: String Manipulation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 2nd October 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Replaces a string (oldw) with desired new string (neww)

Rate Replaces a string (oldw) with desired new string (neww)



STRL = InStr(STRX, oldw)
Do Until STRL = 0
Mid(STRX, STRL, 1) = neww
STRL = InStr(STRX, oldw)
Loop
End Function

STRX = 'source where to replace string such as text1.text
'oldw = original string
'neww = what will replace oldw (original string)
Call checkchar(oldw, neww)

Download this snippet    Add to My Saved Code

Replaces a string (oldw) with desired new string (neww) Comments

No comments have been posted about Replaces a string (oldw) with desired new string (neww). Why not be the first to post a comment about Replaces a string (oldw) with desired new string (neww).

Post your comment

Subject:
Message:
0/1000 characters