On Jun 26, 2009, at 5:28 AM, Cor Nouws wrote:
Hi Hal,
Hal Vaughan wrote (26-6-2009 8:41)
[...]
The only problem with this is if I do this at the start of a
document I end up with a null character or something instead and I
can't do a comparison on it. So is there some way, after moving
the cursor, to check and see if I'm at the start of the document?
[...]
What I would try (I don't have a working example at hand, sorry) is
creating a textcursor at the start of the text, and compare the
range of your oCurs with that range.
Hmmm.... I'd have to extend the text cursor at the start of the text
one character forward each time I move the other one character back,
so I could match it. I have to think it over because I need to be
sure I don't just compare the two but am also sure the key phrase I'm
looking at is complete. I'm not sure, but I think I can imagine the
two phrases matching even if it's not the one at the start. I don't
know if that makes a difference, though.
Hal
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]