Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find & replace word

Status
Not open for further replies.

Helen1greece

Technical User
Jun 4, 2003
85
0
0
GR
Is there a way to find a word in a text and replace it with another? Can somebody give me an example code? (The word may be more than one time in the text)
 
Have you tried the replace function?
Code:
   myString = Replace (myString, "this", "that" )
[\code][\color]
Replaces all occurences of "this" with "that" in myString.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top