globalNames

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the globalNames
globalNames()
Synonymsglobals
Summary

Returns a list of declared global variables.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
the globalNames
if "myGlob" is not among the items of the globalNames then global myGlob
Values
NameTypeDescription
return

The globalNames function returns a list of all global variables, separated by commas.

RelatedCommand: global, delete variable
Function: variableNames, localNames
Control Structure: function
Glossary: declare, application, return, global
Description

Use the globalNames function to determine which globalvariables are available, or to make sure a global variable name has not already been used before declaring it.

Global variables are created with the global command. They can be deleted with the delete variable command. All globalvariables that have been declared since the application was started up are included in the globalNames function, except any that have been explictly deleted.

Tagsproperties