moveStartmoveStart*
*



Contents  *



Index  *Topic Contents
*Previous Topic: moveEnd
*Next Topic: moveTo

moveStart

Description

Changes the scope of the range by moving the start position of the range.

Syntax

long = object.moveStart(unit [, count])

ParameterDescription
unit String specifying the units to move. Can be one of the following strings:
character Moves one or more characters.
word Moves one or more words. A word is a collection of characters terminated by a space or other white-space character.
sentence Moves one or more sentences. A sentence is a collection of words terminated by a punctuation character, such as a period.
textedit Moves to the start or end of the original range.
count Optional. Integer specifying the number of units to move. This can be positive or negative. When omitted, defaults to 1.

Return Value

Returns the actual number of units moved.

Remarks

This feature might not be available on non-Win32 platforms. See article Q172976 in the Microsoft Knowledge Base for the latest information on Internet Explorer cross-platform compatibility.

Applies To

TextRange

See Also

move, moveEnd


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.