hilitedLine

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the hilitedLine of <field> to <listOfLines>
Synonymshilitedlines
Associationsfield
Summary

Specifies the numbers of the selected lines in a list field.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the hilitedLine of field "Options List" to 1
repeat with x = 1 to the number of items in the hilitedLines of me
Values
NameTypeDescription
Value

The hilitedLine of a field is a list of one or more integers, separated by commas.

RelatedKeyword: field, line, lines
Property: selected, listBehavior, toggleHilites, threeDHilite, noncontiguousHilites, multipleHilites
Command: select
Function: selectedText, selectedLine
Control Structure: function
Glossary: property, integer, list field, chunk expression
Description

Use the hilitedLine property to check which lines in a list field are selected, or to select a line.

Each item of the hilitedLine property is a line number. For example, if the first and fourth lines of the field are selected, the hilitedLine is 1,4. You can retrieve the text of the selected lines either by using the line numbers in a chunk expression or by using the selectedText function.

If the field's listBehavior property is false, this property has no effect.

Tagsui