« Return to Thread: Avoiding Moving The Cursor Before Start of Document

Re: Avoiding Moving The Cursor Before Start of Document

by Cor Nouws :: Rate this Message:

Reply to Author | View in Thread

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.

HTH,
Cor

--
Cor Nouws - nl.OpenOffice.org marketing contact
Ontwikkelaar? Join! http://council.openoffice.org/developers.html
Gevoel niet vrij te zijn? Zie www.nieuwsteversie.nl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...

 « Return to Thread: Avoiding Moving The Cursor Before Start of Document