forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfrontScripts.lcdoc
More file actions
36 lines (20 loc) · 1.62 KB
/
frontScripts.lcdoc
File metadata and controls
36 lines (20 loc) · 1.62 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
Name: frontScripts
Type: function
Syntax: the frontScripts
Syntax: frontScripts()
Summary: <return|Returns> a list of <object|objects> that have been inserted into the <message path> before the target <object>.
Introduced: 1.0
OS: mac,windows,linux,ios,android
Platforms: desktop,server,web,mobile
Example:
the frontScripts
Example:
if myID is not among the lines of the frontScripts then insertMe
Returns: The <frontScripts> function returns a list of the long ID property of all objects that have been inserted into the front, one ID per line.
Description:
Use the <frontScripts> function to find out which scripts receive messages and function calls before the target object.
A script inserted into the front with the <insert script> command receives messages before all objects in the message path.
This includes messages sent with the <send> command, so if you send a message to an object, the objects in the <frontScripts> receive that message before the target object does. If the scripts in the <frontScripts> do not use the <pass> control structure to pass on the message to the next object, the target object never receives the message.
If more than one object is in the <frontScripts>, their order in the message path is the same as their order in the list. For example, the first object in the <frontScripts> receives messages before the second object. This order is the reverse of the order in which the objects were added with the <insert script> command.
References: remove script (command), insert script (command), send (command), object (object), message path (glossary), return (glossary), pass (control_st)
Tags: objects