Difference between revisions of "cock.find"

(Created page with "Finds control object by ID. == Synopsis == === Function === <source lang="Lua">control = cock.find ( id )</source> === Arguments === {{param|string|id|An identifier to use for th...")
 
m
Line 4: Line 4:
 
<source lang="Lua">control = cock.find ( id )</source>
 
<source lang="Lua">control = cock.find ( id )</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|string|id|An identifier to use for this object.}}
+
{{param|string|id|An identifier to find object by.}}
 
=== Returns ===
 
=== Returns ===
 
{{param|table|control|Found control object (nil on failure).}}
 
{{param|table|control|Found control object (nil on failure).}}

Revision as of 18:45, 31 August 2013

Finds control object by ID.

Synopsis

Function

control = cock.find ( id )

Arguments

string id
An identifier to find object by.

Returns

table control
Found control object (nil on failure).

See also