|
-
Mar 22nd, 2004, 07:07 PM
#1
Thread Starter
Hyperactive Member
finding a string in richtext box...
i am trying to find a string in a richtext box and this is what i do...
for example the content of my richtextbox is
a
a
b
a
b
i do rich.selstart = 0
rich.find "a"
then i get the positiion of the first a.
But how do i do now to find the second or third a?
I only can find the first.
thanks,
-
Mar 22nd, 2004, 07:18 PM
#2
Pos = RichTextBox1.Find
Pos = RichTextBox1.Find, Pos
-
Mar 22nd, 2004, 07:18 PM
#3
Lively Member
Do you want to fin out how many "a's" there are, or are you looking for the position of each "a"?
.......hmmm well nevermind....marty beat me to it...
-
Mar 22nd, 2004, 07:33 PM
#4
Thread Starter
Hyperactive Member
Originally posted by OsamaBinGhandi
Do you want to fin out how many "a's" there are, or are you looking for the position of each "a"?
.......hmmm well nevermind....marty beat me to it...
no i have to make a small class module where i must be able to find the second a.
for example:
user: blablbal
date: blablabl
user:bliblibli
so then i can find name of second user.
-
Mar 22nd, 2004, 07:34 PM
#5
Thread Starter
Hyperactive Member
Originally posted by MartinLiss
Pos = RichTextBox1.Find
Pos = RichTextBox1.Find, Pos
trying to but seems it does not work. verry strange because i was doing this already
-
Mar 22nd, 2004, 07:54 PM
#6
Sorry, my mistake
Pos = RichTextBox1.Find
Pos = RichTextBox1.Find, Pos + 1
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
|