setEndPoint Method

Microsoft FrontPage Visual Basic

Show All Show All

setEndPoint Method

Sets the end point of one range based on the end point of another range.

expression.setEndPoint(how, SourceRange)

expression    Required. An expression that returns one of the objects in the Applies To list.

Compares an end point of an IHTMLTxtRange object with an end point of another IHTMLTxtRange object. Returns a Long that represents the comparison of the specified points.

expression.compareEndPoints(how, SourceRange)

expression    Required. An expression that returns an IHTMLTxtRange object.

how    Required String. Specifies the end point to transfer. May be one of four values.

The String value of the how parameter can be one of the following:

ValueDescription
StartToStartMoves the start of the specified IHTMLTxtRange object to the start of the IHTMLTxtRange object specified in the SourceRange parameter.
StartToEndMoves the start of the specified IHTMLTxtRange object to the end of the IHTMLTxtRange object specified in the SourceRange parameter.
EndToStartMoves the end of the specified IHTMLTxtRange object to the start of the IHTMLTxtRange object specified in the SourceRange parameter.
EndToEndMoves the end of the specified IHTMLTxtRange object to the end of the IHTMLTxtRange object specified in the SourceRange parameter.

SourceRange    Required IHTMLTxtRange. Specifies the range from which the source end point is to be taken.