* Laurent Godard <[EMAIL PROTECTED]> [100605, 15:15]:
> Hi paolo,
>
> interresting game :)
>
> >
> >At the end of this post there's my testing code
> >am I doing something wrong ?
> >Perhaps I missed some SearchFlags ?
> >
>
> please find a working modification of your code at the end
>
> in fact you have to loop aver oTextSerach, by starting after the
> endOfset of your previous result
> oTextSearch.searchForward(sStrToSearch,
> aSearchResult.endOffset(rank)+1,Len(sStrToSearch)-1 )
>
> until you have no more result given by
> while aSearchResult.subRegExpressions > 0
>
> Please verify this as i didn't take time to verify all things
>
> HTH
>
> Laurent
>
Hi Laurent,
I've been playing with Paolo's code for a while (just to try to
understand a bit more how things work). The best I could envisage
when I realized the loop was missing was a "Goto label" ... :-)
With your modification the game goes over, giving the various substrings
as (apparently) they are found (i.e. the aSearchResult.subRegExpressions is >
0). Of course (?) having set .searchString = "[:digit:]+" in the
SearchOptions it finds digits only. I tried "[:alpha:]+ [:digit:]+" and
seemed to work for both numbers and letters, although not all items were
'found'.
While Paolo will give the final answer to this respect as he knows
exactly what is trying to achieve, I'm curious to know whether the IDL
statement that the subRegExpressions value can be greater than 1 is
correct at all. It seems to be a boolean value, or am I far behind any
acceptable understanding of what I read?
Thanks for your attention.
Regards,
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]