What are you asking for?
Your code is saying if "mybookmark" doesn't exist then tell me the name of the nth (where n = the paragraph number) bookmark. This will fail as soon as the number of bookmarks is surpassed by the number of paragraphs.
Bookmarks can be an insertion point or a range of text either within a single paragraph or across a bunch of content. So if a bookmark exists it could show a range of zero length or span multiple paragraphs.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
|