Search within text range

The Application Programming Interface and the OASIS Open Document Format

Search within text range

Postby Rocko » Wed Nov 05, 2008 2:43 am

I'm programming on VB6. I use findFirst to find some text in a document and get a TextRange as a result. Now I want to search within that text range. How do I do it?

IE:

Set oSearchDescriptor = oDoc.createSearchDescriptor()
oSearchDescriptor.SearchString = "SOMETHING"
Dim oMatch As Variant
Set oMatch = oDoc.findFirst(oSearchDescriptor)

oMatch <--- Find something here. I need another text range as a result

Thanks for the help.
OOo 3.0.X on Ms Windows XP
Rocko
 
Posts: 2
Joined: Wed Nov 05, 2008 2:39 am

Return to UNO API and ODF

Who is online

Users browsing this forum: No registered users and 3 guests