lineIndex

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
get the lineIndex of <fieldChunk>
Associationsfield
Summary

The line offset in the field of the start of the chunk.

Introduced5.5
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
-- Example: 2 lines of text in a field
-- Hello World
-- Goodbye World

the lineIndex of char 7 of field 1 -- 1
-- char 7 is on line 1
the lineIndex of word 4 of field 1 -- 2
-- word 4 is on line 2
RelatedProperty: charIndex
Description

The lineIndex of a field chunk returns the line offset in the field of the start of the chunk.

Tagstext processing