constantNames

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the constantNames
constantNames()
Summary

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

Introduced2.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
the constantNames
if it is among the lines of the constantNames then askForAnotherName
Values
NameTypeDescription
return

The constantNames function returns a list of constant names, one per line.

RelatedKeyword: line
Command: constant
Function: propertyNames, functionNames
Control Structure: function
Glossary: constant, LiveCode, variable, return, reserved word
Description

Use the constantNames function to check whether a particular constant already exists in LiveCode, to avoid using a reserved word for your own constants and variables.

The constantNames function returns all the constants that are predefined in LiveCode, including synonyms.