Difference between revisions of "Os.setComputerLabel"

From ComputerCraft Wiki
Jump to: navigation, search
m (Moved to CAT:LuaCoreFunctions)
m (Updated references from "os" to "OS")
Line 4: Line 4:
 
|args=[[string (type)|string]] label
 
|args=[[string (type)|string]] label
 
|returns=Unknown
 
|returns=Unknown
|api=os
+
|api=OS
 
|addon=ComputerCraft
 
|addon=ComputerCraft
 
|desc=Set the label of the computer this command is executed on to <var>label</var>.
 
|desc=Set the label of the computer this command is executed on to <var>label</var>.

Revision as of 14:08, 30 November 2012


Grid Redstone.png  Function os.setComputerLabel
Set the label of the computer this command is executed on to label.
Syntax os.setComputerLabel(string label)
Returns Unknown
Part of ComputerCraft
API OS

Examples

Grid paper.png  Example
set the Computer label to "My Computer"
Code
os.setComputerLabel("My Computer")