Livecode Wiki
Advertisement

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

get the lineIndex of <fieldChunk>

Examples:

-- Example: 2 lines of text in a field
-- Hello World
-- Goodbye World
the lineIndex of word 4 of field 1 -- 2
-- word 4 is on line 2
Advertisement