StartOfWindow, StartOfWindow()

Syntax

StartOfWindow [Select]

StartOfWindow([Select])

Remarks

The StartOfWindow 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+PAGE UP (Windows) or COMMAND+SHIFT+PAGE UP (Macintosh)) to the upper-left corner of the contents currently visible in the document window.

The StartOfWindow() 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 (that is, if it was already at the upper-left corner of the window)

–1

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


Example

This example selects the visible contents of the active document window:


StartOfWindow
EndOfWindow 1

See Also

EndOfWindow, StartOfDocument