Lingo Dictionary > G-K > hilite (command)

 

hilite (command)

Syntax

fieldChunkExpression.hilite()
hilite fieldChunkExpression 

Description

Command; highlights (selects) in the field sprite the specified chunk, which can be any chunk that Lingo lets you define, such as a character, word, or line. On the Macintosh, the highlight color is set in the Appearance tab of the Appearance control panel.

Example

This statement highlights the fourth word in the field cast member Comments, which contains the string Thought for the Day:

member("Comments").word[4].hilite()

Example

This statement causes highlighted text within the sprite for field myRecipes to be displayed without highlighting:

myLineCount = member("myRecipes").line.count
member("myRecipes").line[myLineCount + 1].hilite()

See also

char...of, item...of, line...of, word...of, delete, mouseChar, mouseLine, mouseWord, field, selection() (function), selEnd, selStart