473,396 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

tom.ITextRange Find Reguler Expresssion does not work

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


Nov 20 '05 #1
2 1465
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
--------------------------------------------------------------------
This reply is provided AS IS, without warranty (express or implied).

--------------------
From: " Just Me" <ne**************@a-znet.com>
Subject: tom.ITextRange Find Reguler Expresssion does not work
Date: Sun, 6 Jun 2004 08:48:54 -0400
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
Message-ID: <#t**************@tk2msftngp13.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.vb
NNTP-Posting-Host: h21.d169b8.dial.xtelegent.net 209.105.184.21
Path: cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFT NGP08.phx.gbl!tk2msftngp13
.phx.gblXref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.languages.vb:208022
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

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


Nov 20 '05 #2
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
"Craig Vick [MSFT]" <cr*****@online.microsoft.com> wrote in message
news:Sn**************@cpmsftngxa10.phx.gbl...
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
--------------------------------------------------------------------
This reply is provided AS IS, without warranty (express or implied).

--------------------
From: " Just Me" <ne**************@a-znet.com>
Subject: tom.ITextRange Find Reguler Expresssion does not work
Date: Sun, 6 Jun 2004 08:48:54 -0400
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
Message-ID: <#t**************@tk2msftngp13.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.vb
NNTP-Posting-Host: h21.d169b8.dial.xtelegent.net 209.105.184.21
Path:

cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFT NGP08.phx.gbl!tk2msftngp13 phx.gbl
Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.languages.vb:208022
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

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



Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Siemel Naran | last post by:
Hi. I have a table of products and versions, and these 2 columns are the unique key. My challenge is to write a SQL statement to find the latest version of each product. My solutions below...
4
by: Bill Murray | last post by:
I am using VS.NET 2003 and trying to deploy a service program(c++) to a Windows 2000 Server system. I have also written a small DLL (USSsetup.dll) that is used to start/stop the service using a...
0
by: Just Me | last post by:
Does the ITextDocument interface on the DLL the RichTextBox is built on supports regular expressions? Documentation seems to support using Regular expressions. I can't make it work. Is there...
2
by: JebBushell | last post by:
I see signs that the ASP.NET regular expression validator has a different instruction set that the Find utility in VS 2003. I am trying to use the VS2003 regular expression Find tool to test...
3
by: shaun | last post by:
I'm doing some work with const maps of various types and I find that I'm writing the same few lines of code over and over: (having declared and initialized a map<myTypeA, myTypeB> myMap) ...
5
by: Draw | last post by:
Hi All, Just a thought, about the find() algorithm in the C++ STL. I read that the find algorithm can take a range of iterators. If it does not find the element it is looking for in that range...
16
by: TT (Tom Tempelaere) | last post by:
Hi all, I created an XSD to define the structure of an XML file for my project. I made an XML file linked to the XSD using XmlSpy. The problem is that if I read the file using .NET XmlDocument...
9
by: Tony Girgenti | last post by:
Hello. I'm developing and testing a web application using VS.NET 2003, VB, .NET Framework 1.1.4322, ASP.NET 1.1.4322 and IIS5.1 on a WIN XP Pro, SP2 computer. I'm using a web form. For a...
2
by: moondaddy | last post by:
I had to repost this because I had to update and change my msdn alias. I will re-ask the question and clarify a few things that were not clear before. This code is all executed on my dev...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.