RichText.SetSelection

RichText.SetSelection ( 

string  ObjectName,

number  Start,

number  End )

Description

Selects a range of text in a richtext object. This is just like highlighting the text with the mouse.

Parameters

ObjectName

(string) The name of the richtext object.

Start

(number) The character index for the start of the selection. (The first character in a richtext object has an index of 1.)

End

(number) The character index for the end of the selection. (Use -1 to specify the end of the text in the richtext object.)

Returns

Nothing. You can use Application.GetLastError to determine whether this action failed, and why.

See also:  Related Actions