|
-
Dec 19th, 2000, 01:54 PM
#1
Thread Starter
Hyperactive Member
.....to make me extremely happy if you can answer this question. I'm making a simple text editor, and I'd like to know how to implement find and replace features as seen in most applications. I've already found a tutorial on VB-Square, but I'd like to know how to make my program highlight each individual instance of the text (when found), replace this text when prompted, and move onto the next instance when the "Next" button is clicked. Even if you could just point me in the direction of some useful functions to look at, I'd be ecstatic!
TIA!
-
Dec 19th, 2000, 01:59 PM
#2
Frenzied Member
simple answer, use INSTR and REPLACE functions
find it wit instr
usin selstart, sellenght of the text box property to highlight
and use replace function if they want to replace
you will need to use LIKE function/method as well
so that if your searching for inter, it would find inter in the word Internet
ect..
-
Dec 19th, 2000, 02:04 PM
#3
Frenzied Member
-
Dec 19th, 2000, 02:32 PM
#4
Thread Starter
Hyperactive Member
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
|