Error getting tags :
error 404Error getting tags :
error 404 hilitedLine | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
hilitedLine
Basics
Expander triangle
Type
Property
Syntax
set the hilitedLine of field to listOfLines
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Specifies the numbers of the selected lines in a list field.
Examples

set the hilitedLine of field "Options List" to 1
repeat with x = 1 to the number of items in the hilitedLines of me

Additional Comments
Expander triangle

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

Value:

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

Comments:

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.

User Comments
Expander triangle
User thumbnail
shaosean@wehostmacs.com
StarStarStarStarStar
May 17, 2009
If no lines are selected, the hilitedLine property is EMPTY
User thumbnail
revonline@fourthworld.com
StarStarStarStarStar
Aug 4, 2010
There's a very rare issue that may be worth knowing about on the odd chance you run into it, and the workaround is easy:
If you have a list field and attempt to get the htmlText of a single line of the field's contents, you may find that the hilitedLines will change. This is a bug, which has been confirmed and is being worked on.
In the meantime, in the rare case that you need to do this the workaround is simple: just get the htmlText of the full field's contents, and parse out the line you need from that:
get the htmlText of fld 1 get line 4 of it
That works without issue in all tested versions of the engine.