[RESOLVED] RTF search and get
Hi guys,
Wanted to ask...
im using the find function in rtf, and when the text is found i get the number of the postion...now i would like to know how to get the text from that position + the next 10 chars?
im pretty lame with that selstart, sellength thing :bigyello:
Re: [RESOLVED] RTF search and get
It works fine but when i do this:
Code:
p1 = FindText(txtLoginW, "TEXT1", 2, ";")
p2 = FindText(txtLoginW, "TEXT"", 2, ";")
p3= FindText(txtLoginW, "TEXT3", 2, ";")
I get only the first result from p1.....from MyArray(0)
It would be nice to get the found data on P1...
Can i do that somehow?
Thanks for the help m8!
Re: [RESOLVED] RTF search and get
Ok what i did is :
1.Put this at the end of the FindText function:
CurInitLen = 0
lngCount = 0
pos = 0
2. at the end of the FindText :
findtext = myarray(0)
that's it :D
Cheers
Re: [RESOLVED] RTF search and get
Quote:
Originally Posted by batori
It works fine but when i do this:
Code:
p1 = FindText(txtLoginW, "TEXT1", 2, ";")
p2 = FindText(txtLoginW, "TEXT"", 2, ";")
p3= FindText(txtLoginW, "TEXT3", 2, ";")
I get only the first result from p1.....from MyArray(0)
It would be nice to get the found data on P1...
Can i do that somehow?
Thanks for the help m8!
this line has a double quote: p2 = FindText(txtLoginW, "TEXT"", 2, ";")
should this be TEXT2 ?"TEXT""