variableNames

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the variableNames
variableNames()
Summary

Returns a list of all parameters, local variables, and global variables.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
the variableNames
repeat with x=1 to the number of items of line 4 of the variableNames
Values
NameTypeDescription
return

The variableNames function returns a value consisting of four lines :

  1. Parameters passed to the current handler (including leading '@' for parameters passed by-reference)
  2. Local variables created in the current handler
  3. Local variables created in the current script but outside all handlers
  4. Global variables

Within each line, the variable or parameter names are separated by commas.

RelatedKeyword: lines
Command: global, local
Function: functionNames, paramCount, globalNames, value
Control Structure: function
Glossary: parameter, handler, variable, return, local variable
Description

Use the variableNames function to find out which sources of value are available to the current handler, or to see whether a variable name is available for use.

Tagsproperties