commandNames

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the commandNames
commandNames()
Summary

Returns a list of all built-in commands in LiveCode.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
the commandNames
if field "Name" is among the lines of the commandNames then exit repeat
Values
NameTypeDescription
return

The commandNames function returns a list of command names, one per line.

RelatedKeyword: line
Function: propertyNames, functionNames
Glossary: handler, LiveCode, command, return, reserved word
Control Structure: on, function
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 handlers.

The commandNames function returns all the commands that can be used in LiveCode, including synonyms.