EndOfDocument, EndOfDocument()

Syntax

EndOfDocument [Select]

EndOfDocument([Select])

Remarks

The EndOfDocument statement moves the insertion point or, if Select is nonzero, the active end of the selection (the end that moves when you press CTRL+SHIFT+END) to the end of the document.

The EndOfDocument() function behaves the same as the statement and also returns one of the following values.

Value

Explanation

0 (zero)

If the insertion point or the active end of the selection was not moved (for example, if it was already at the end of the document)

–1

If the insertion point or the active end of the selection was moved


See Also

AtEndOfDocument(), StartOfDocument