SelectCurSentence

Syntax

SelectCurSentence

Remarks

Selects the entire sentence containing the insertion point or selection, including the trailing space. If the selection is larger than a sentence when SelectCurSentence is run, an error occurs.

Example

This example defines the variable a$ as the text in the current sentence. To avoid an error if there is a selection that extends over multiple sentences, the first instruction cancels the selection if there is one.


If SelType() = 2 Then SelType 1        'Cancel selection, if any
SelectCurSentence
a$ = Selection$()

See Also

SelectCurWord, SentLeft, SentRight