hilitedLine

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

# Metadata

Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:

# Syntax

set the hilitedLine of field to listOfLines

# Examples

set the hilitedLine of field "Options List" to 1

repeat with x = 1 to the number of items in the hilitedLines of me

# 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.

# Tags

ui,

# See

- **keyword:** 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