forked from vdelachaux/macros
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_vdl .xml
executable file
·241 lines (163 loc) · 7.2 KB
/
_vdl .xml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!DOCTYPE macros SYSTEM "http://www.4d.com/dtd/2007/macros.dtd" >
<macros>
<!-- THE FOLLOWING MACROS ARE DISPLAYED IN THE TOOLBAR MENU AND AVAILABLE THRU TYPE AHEAD-->
<!-- BRANCHING STRUCTURES -->
<!--
<macro name="If" in_menu="false" type_ahead="true" type_ahead_text="if">
<text>If(<caret/>)
<selection/>
End if</text>
</macro>
-->
<macro name="If" in_menu="false" type_ahead="true" type_ahead_text="if">
<text>If(<caret/>)
<selection/>
Else
// A "If" statement should never omit "Else"
End if</text>
</macro>
<macro name="Case of" in_menu="false" type_ahead="true" type_ahead_text="Case of">
<text>Case of
//______________________________________________________
:(<caret/>)
<selection/>
//______________________________________________________
:(False)
//______________________________________________________
Else
// A "Case of" statement should never omit "Else"
//______________________________________________________
End case</text>
</macro>
<!-- separator line -->
<macro name="-" in_menu="true" type_ahead="false"/>
<!-- LOOPING STRUCTURES -->
<macro name="For" in_menu="false" type_ahead="true" type_ahead_text="For">
<text>For($i;1;<caret/>;1)
<selection/>
End for</text>
</macro>
<macro name="For each" in_menu="false" type_ahead="true" type_ahead_text="For">
<text>For each (<caret/>;collectionExpressionOrObject)
<selection/>
End for each</text>
</macro>
<macro name="For each Until" in_menu="false" type_ahead="true" type_ahead_text="For">
<text>For each (<caret/>;collectionExpressionOrObject) Until (booleanExpression)
<selection/>
End for each</text>
</macro>
<macro name="For each While" in_menu="false" type_ahead="true" type_ahead_text="For">
<text>For each (<caret/>;collectionExpressionOrObject) While (booleanExpression)
<selection/>
End for each</text>
</macro>
<macro name="While" in_menu="false" type_ahead="true">
<text>While(<caret/>)
<selection/>
End while</text>
</macro>
<macro name="Repeat" in_menu="false" type_ahead="true">
<text>Repeat
<selection/>
Until(<caret/>)</text>
</macro>
<!-- separator line -->
<macro name="-" in_menu="true" type_ahead="false"/>
<macro name="selection := New shared object" in_menu="false" type_ahead="false">
<text><selection/>:=New shared object
Use(<selection/>)
<selection/><caret/>
End use
</text>
</macro>
<macro name="use [selection]" in_menu="false" type_ahead="true">
<text>Use(<selection/>)
<selection/>.<caret/>
End use
</text>
</macro>
<!-- separator line -->
<macro name="-" in_menu="true" type_ahead="false"/>
<macro name="bool[]" in_menu="false" type_ahead="true">
<text>bool:C1537(<selection/><caret/>)</text>
</macro>
<macro name="num[]" in_menu="false" type_ahead="true">
<text>num(<selection/><caret/>)</text>
</macro>
<macro name="not[]" in_menu="false" type_ahead="true">
<text>Not(<selection/><caret/>)</text>
</macro>
<macro name="string[]" in_menu="false" type_ahead="true">
<text>string(<selection/><caret/>)</text>
</macro>
<macro name="length[]" in_menu="false" type_ahead="true">
<text>length(<selection/><caret/>)</text>
</macro>
<macro name="New object[]" in_menu="false" type_ahead="true" type_ahead_text="œ">
<text>New object:C1471("<caret/>";)</text>
</macro>
<macro name="New collection[]" in_menu="false" type_ahead="true" type_ahead_text="©">
<text>New collection:C1472(<selection/><caret/>)</text>
</macro>
<!-- separator line -->
<macro name="-" in_menu="true" type_ahead="false"/>
<macro name="not[Shift down]" in_menu="false" type_ahead="true" type_ahead_text="not">
<text>Not:C34(Shift down:C543)</text>
</macro>
<macro name="dom_parseSource" in_menu="false" type_ahead="true" type_ahead_text="dom_">
<text><selection/>:=DOM Parse XML source:C719(<caret/>)
If (Bool:C1537(OK))
DOM CLOSE XML:C722(<selection/>)
End if </text>
</macro>
<macro name="dom_parseVariable" in_menu="false" type_ahead="true" type_ahead_text="dom_">
<text><selection/>:=DOM Parse XML variable:C720(<caret/>)
If (Bool:C1537(OK))
DOM CLOSE XML:C722(<selection/>)
End if </text>
</macro>
<macro name="ON ERR CALL" in_menu="false" type_ahead="true">
<text>
$Txt_onErrCallMethod:=Method called on error:C704
//====================== [
ON ERR CALL:C155("<caret/>")
<selection/>
ON ERR CALL:C155($Txt_onErrCallMethod)
//====================== ]
</text>
</macro>
<!-- THE FOLLOWING MACROS ARE ONLY AVAILABLE THRU TYPE AHEAD -->
<macro name="size of array" in_menu="false" in_toolbar="false">
<text>Size of array:C274(<caret/>)</text>
</macro>
<macro name="Find in array" in_menu="false" in_toolbar="false">
<text>Find in array:C230(<caret/>;toFind)</text>
</macro>
<macro name="New shared object" in_menu="false" in_toolbar="false">
<text>New shared object
Use(<caret/>)
End use
</text>
</macro>
<macro name="choose" in_menu="false" in_toolbar="false">
<text>Choose:C955(<caret/>; ; )</text>
</macro>
<!-- SHORTCUTS -->
<macro name="null_date" in_menu="false" in_toolbar="false">
<text>!00/00/00!</text>
</macro>
<macro name="null_time" in_menu="false" in_toolbar="false">
<text>†00:00:00†</text>
</macro>
<macro name="null_hexa" in_menu="false" in_toolbar="false">
<text>0x0000</text>
</macro>
<macro name=">" in_menu="false" in_toolbar="false">
<text>-></text>
</macro>
<macro name="ok" in_menu="false" in_toolbar="false">
<text>Bool:C1537(OK)</text>
</macro>
</macros>