forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcharIndex.xml
More file actions
67 lines (51 loc) · 1.3 KB
/
Copy pathcharIndex.xml
File metadata and controls
67 lines (51 loc) · 1.3 KB
1
<doc> <legacy_id></legacy_id> <name>charIndex</name> <type>property</type> <syntax> <example>get the charIndex of <i>fieldChunk</i></example> </syntax> <synonyms> </synonyms> <summary>The <b>charIndex</b> of a field chunk returns the character offset in the field of the start of the chunk.</summary> <examples><example><p>-- Example: 2 lines of text in a field</p><p>-- Hello World</p><p>-- Goodbye World</p><p></p><p>the charIndex of line 2 of field 1 </p><p>-- 13 (line 1 has 11 chars + a return char making first char of line 2 = 13)</p><p></p></example><example><p>the charIndex of word 2 of field 1 </p><p>-- 7</p></example> </examples> <history> <introduced version="5.5">Added.</introduced> <deprecated version=""></deprecated> <removed version=""></removed> </history> <objects> <field/> </objects> <platforms> <mac/> <windows/> <linux/> <ios/> <android/> </platforms> <classes> <desktop/> <server/> <web/> <mobile/> </classes> <security> </security> <classification> <category>Text and Data Processing</category> </classification> <references> <property tag="lineIndex">lineIndex Property</property> </references> <description> <overview></overview> <parameters> </parameters> <value></value> <comments></comments> </description></doc>