* Paolo Mantovani <[EMAIL PROTECTED]> [090605, 18:17]: > Hi all, > > The method XTextSearch.searchForward results an > com.sun.star.util.SearchResult structure > > http://api.openoffice.org/docs/common/ref/com/sun/star/util/SearchResult.html > > As you can see, IDL documentation says that setting the searchAlgorithm to > REGEXP I can find multiple sub matches but, in my tests I'm obtaining ever > and only the first one > > At the end of this post there's my testing code > am I doing something wrong ? > Perhaps I missed some SearchFlags ? > > > Thanks in advance for any help > Paolo M. > Hi Paolo, I'm the least apt to give any help on this list ... however you might have missed the fact that both > LBound(aSearchResult.startOffset()) # and > UBound(aSearchResult.startOffset()) evaluate to 0 and all subsequent values are 1! HTH, although I'm not sure I correctly interpreted your macro. Ciao, Ennio
-- [Perche' usare Win$ozz (dico io) se ..."anche uno sciocco sa farlo. \\?// Fa' qualche cosa di cui non sei capace!" (diceva Henry Miller) ] (�|�) [Why use Win$ozz (I say) if ... "even a fool can do that. )=( Do something you aren't good at!" (as Henry Miller used to say) ] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
