This repository was archived by the owner on Aug 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 226
Expand file tree
/
Copy pathdropChunk.lcdoc
More file actions
52 lines (36 loc) · 1.5 KB
/
dropChunk.lcdoc
File metadata and controls
52 lines (36 loc) · 1.5 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
48
49
50
51
Name: dropChunk
Type: function
Syntax: the dropChunk
Syntax: dropChunk()
Summary:
<return|Returns> a <chunk expression> describing the location in the
<field> where data was dropped.
Introduced: 2.0
OS: mac, windows
Platforms: desktop, server
Example:
the dropChunk
Example:
select the dropChunk
Returns:
The <dropChunk> <function> <return|returns> a <chunk expression> of the
form char followingChar to precedingChar of field fieldNumber. The
followingChar is always one less than the precedingChar.
Description:
Use the <dropChunk> <function> within a <dragDrop> <handler> to find out
exactly where text was dropped into a <field>.
The <dropChunk> <function> only <return|returns> a value while a
<dragDrop> <handler> is being <execute|executed>: that is, you can use
it in a <dragDrop> <handler> or in a <handler> that's called by a
<dragDrop> <handler>. If called from another <handler>, the <dropChunk>
<function> <return|returns> empty.
The <dropChunk> <function> designates an <insertion point> rather than a
run of characters. For example, if you drop text between <characters> 3
and 4 of <field> number 1, the <dropChunk> <function> <return|returns>
"char 4 to 3 of field 1".
References: function (control structure), dragDestination (function),
mouseChunk (function), clickChunk (function), dropChunk (function),
handler (glossary), insertion point (glossary), return (glossary),
chunk expression (glossary), execute (glossary), field (keyword),
characters (keyword), dragDrop (message)
Tags: text processing