Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

setName(name)

Description

Function to change the name of an element in the program tree.

Available in: Controller.

Arguments

nameThe new name for the element.string

Example

-- print current name of the script module
print(this.name)
-- set the name of the script module to "My element"
this:setName("My Element")
-- print the new name of the script module
print(this.name)
  • No labels