forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfoundLine.xml
More file actions
47 lines (47 loc) · 2.33 KB
/
Copy pathfoundLine.xml
File metadata and controls
47 lines (47 loc) · 2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<doc>
<legacy_id>2195</legacy_id>
<name>foundLine</name>
<type>function</type>
<syntax>
<example>the foundLine</example>
<example>foundLine()</example>
</syntax>
<library></library>
<objects>
</objects>
<synonyms>
</synonyms>
<classification>
<category>Database Operations</category>
</classification>
<references>
<command tag="find">find Command</command>
<function tag="mouseLine">mouseLine Function</function>
</references>
<history>
<introduced version="1.0">Added.</introduced>
</history>
<platforms>
<mac/>
<windows/>
<linux/>
<ios/>
<android/>
</platforms>
<classes>
<desktop/>
<server/>
<web/>
<mobile/>
</classes>
<security>
</security>
<summary><glossary tag="return">Returns</glossary> a <glossary tag="chunk expression">chunk expression</glossary> describing the <keyword tag="line">line</keyword> in which text was located by the most recent <command tag="find">find</command> <glossary tag="command">command</glossary>.</summary>
<examples>
<example>the foundLine</example>
<example>if value(the foundLine) contains "*" then answer value(the foundLine)</example>
</examples>
<description>
<p>Use the <b>foundLine</b> <control_st tag="function">function</control_st> after a <command tag="find">find</command> command to determine where the text was found.</p><p/><p><b>Value:</b></p><p>The <b>foundLine</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> a <glossary tag="chunk expression">chunk expression</glossary> of the form<code> line <i>lineNumber</i> of field <i>fieldNumber</i></code>.</p><p/><p><b>Comments:</b></p><p>The <b>foundLine</b> <control_st tag="function">function</control_st> is cleared when the text <keyword tag="selection">selection</keyword> moves into the <function tag="foundField">foundField</function> or when the <glossary tag="current card">current card</glossary> is closed. At the same time, the box the <command tag="find">find</command> command draws around the found text disappears. If there is no box, the <b>foundLine</b> function <glossary tag="return">returns</glossary> empty.</p><p/><p>To get a chunk expression describing the word or string that was found, use the <b>foundChunk</b> <control_st tag="function">function</control_st>.</p>
</description>
</doc>