charIndex

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

The character 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 charIndex of line 2 of field 1 
-- 13 (line 1 has 11 chars + a return char making first char of line 2 = 13)
the charIndex of word 2 of field 1 
-- 7
RelatedProperty: lineIndex
Description

The charIndex of a field chunk returns the character offset in the field of the start of the chunk.

Tagstext processing