|
-
July 5th, 2001, 07:50 PM
#1
Find and replace......
I know how to search a richtextbox. but when it finds the string that it's searching for, how do you make it replace that string with a "p"?
--Ant
--------------------------------------------------
check out my newest freeware
E-mail me at: [email protected]
for the address
-
July 5th, 2001, 09:47 PM
#2
Re: Find and replace......
RichTextBox1.Text = Replace(RichTextBox1.Text, strFindString, strReplaceString)
Andy Tower
-
July 6th, 2001, 07:44 AM
#3
Re: Find and replace......
In addition to Towers response, the RichTextBox has a "Find" method that go's something like this:
Richtextbox1.Find(string,start,end,options)
GO to MSDN Help and search for "Find Method". It will explain the parameters in detail.
It is a little more selective in what it searches
John G
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|