Livecode Wiki
Advertisement

Returns a list of all local variables.Syntax:

localNames()

Examples:

the localNames
repeat with x = 1 to the number of items of line 2 of the localNames

Use the localNames function to determine which local variables are available to the current handler, or to make sure a local variable name has not already been used before declaring it.

Local variables are created either implicitly, by putting a value into them, or explicitly with the local command. They can be deleted with the delete variable command.

See also: function (control structure),globalNames (function),value (function),

Advertisement