Difference between revisions of "cock.delete"

(Created page with "Deletes control object. Simple nilling the variable that contains this object isn't enough to delete it, you need to call this function as well. == Synopsis == === Function === <...")
 
m
 
Line 1: Line 1:
 
Deletes control object. Simple nilling the variable that contains this object isn't enough to delete it, you need to call this function as well.
 
Deletes control object. Simple nilling the variable that contains this object isn't enough to delete it, you need to call this function as well.
== Synopsis ==
+
== Function ==
=== Function ===
+
=== Synopsis ===
<source lang="Lua">cock.delete ( control )
+
<source lang="Lua">cock.delete ( control )</source>
control:delete ( )</source>
 
 
=== Arguments ===
 
=== Arguments ===
{{param|table|control|An object to delete}}
+
{{param|table|control|An object to delete.}}
{{param|string|control|An object ID to delete}}
+
{{param|string|control|ID of an object to delete.}}
 
== See also ==
 
== See also ==
 
*[[cock.new]]
 
*[[cock.new]]

Latest revision as of 14:56, 2 September 2013

Deletes control object. Simple nilling the variable that contains this object isn't enough to delete it, you need to call this function as well.

Function

Synopsis

cock.delete ( control )

Arguments

table control
An object to delete.
string control
ID of an object to delete.

See also