forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommandNames.lcdoc
More file actions
41 lines (27 loc) · 1.01 KB
/
commandNames.lcdoc
File metadata and controls
41 lines (27 loc) · 1.01 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
Name: commandNames
Type: function
Syntax: the commandNames
Syntax: commandNames()
Summary:
<return|Returns> a list of all built-in <command|commands> in
<LiveCode>.
Introduced: 1.0
OS: mac, windows, linux, ios, android
Platforms: desktop, server, mobile
Example:
the commandNames
Example:
if field "Name" is among the lines of the commandNames then exit repeat
Returns:
The <commandNames> <function> <return|returns> a list of <command>
names, one per <line>.
Description:
Use the <commandNames> <function> to check whether a particular
<command> already exists in <LiveCode>, to avoid using a <reserved word>
for your own custom <handler|handlers>.
The <commandNames> <function> <return|returns> all the
<command|commands> that can be used in <LiveCode>, including synonyms.
References: on (control structure), function (control structure),
propertyNames (function), functionNames (function), handler (glossary),
LiveCode (glossary), command (glossary), return (glossary),
reserved word (glossary), line (keyword)