Lingo Dictionary > S > selection (text cast member property)

 

selection (text cast member property)

Syntax

member(whichTextMember).selection

Description

Text cast member property; returns a list of the first and last character selected in the text cast member.

This property can be tested and set.

Example

The following statement sets the selection displayed by the sprite of text member myAnswer so that characters 6 through 10 are highlighted:

member("myAnswer").selection = [6, 10] 

See also

color(), selStart, selEnd