tom.ITextRange Find Reguler Expresssion does not work

  • Thread starter Thread starter Just Me
  • Start date Start date
J

Just Me

Using
FindText = aRange.FindTextStart(aFindString, aCount, aFlags)

aCount=236 which sounds right for Story

If aFindString="the" and aFlags=0 the word "the" is found.

However, if aFindString="t.*" and aFlags=8 the word "the" is not found

Does the RichTextBox really support Regular Expressions?



Thanks for any info
 
I'm not sure what RichTextBox you're using. The .Net one and the VB6 one
don't support regular expressions. Neither has a FindTextStart method
either.

Craig VB.Net Team
 
Your right. I should have asked if the ITextDocument interface on the DLL
the RichTextBox is built on supports regular expressions (what version of
the underlying control is used?).

Is there any problem using the tom interface with a RichTextBox handle?
Seems to work Ok.

Also, why are there no events shown in the IDE for DragDrop.

Thanks a lot
 
Back
Top