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 223
Expand file tree
/
Copy pathdeleteField.xml
More file actions
45 lines (45 loc) · 2.24 KB
/
Copy pathdeleteField.xml
File metadata and controls
45 lines (45 loc) · 2.24 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
<doc>
<legacy_id>1210</legacy_id>
<name>deleteField</name>
<type>message</type>
<syntax>
<example>deleteField</example>
</syntax>
<library></library>
<objects>
<field/>
</objects>
<synonyms>
</synonyms>
<classification>
<category>Objects & Messages</category>
</classification>
<references>
<command tag="delete">delete Command</command>
</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>Sent to a <keyword tag="field">field</keyword> just before it is removed from the <object tag="stack">stack</object>.</summary>
<examples>
<example>on deleteField <code><i>-- first save the contents in a custom property</i></code></p><p> set the (the short name of the target) of this card to target</p><p> pass deleteField</p><p>end deleteField</example>
</examples>
<description>
<p>Handle the <b>deleteField</b> <keyword tag="message box">message</keyword> if you want to perform cleanup before a <keyword tag="field">field</keyword> is removed from the <object tag="stack">stack</object>.</p><p/><p><b>Comments:</b></p><p>The actual deletion is not triggered by the <b>deleteField</b> <keyword tag="message box">message</keyword>, so <glossary tag="trap">trapping</glossary> the <keyword tag="message box">message</keyword> and not allowing it to <control_st tag="pass">pass</control_st> does not prevent the <keyword tag="field">field</keyword> from being removed.</p><p/><p>However, the <b>undo</b> <glossary tag="command">command</glossary> will restore a <keyword tag="field">field</keyword> after it is deleted by the user. For example, the following <glossary tag="handler">handler</glossary>, placed in a <keyword tag="card">card</keyword> or stack <property tag="script">script</property>, effectively prevents a <keyword tag="field">field</keyword> from being deleted by the user:</p><p/><p><code> on deleteField</code></p><p><code> beep</code></p><p><code> send "undo" to this card in 5 milliseconds</code></p><p><code> end deleteField</code></p>
</description>
</doc>