GetObject (Subsystem function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{Template:Subsystem:GetObject subtitle}}
{{Template:Subsystem:GetObject subtitle}}
The <var>GetObject</var> shared method retrieves a copy of a specified <var>[[Subsystem_class#System-wide_objects|subsystem-wide]]</var> object.
The <var>GetObject</var> shared method retrieves a copy of a specified [[Subsystem_class#System-wide_objects|subsystem-wide]] object.


==Syntax==
==Syntax==

Revision as of 22:50, 24 March 2011

Get a subsystem object (Subsystem class)

The GetObject shared method retrieves a copy of a specified subsystem-wide object.

Syntax

[%number =] %(Subsystem):GetObject( string, object)

Syntax terms

%numberThe generation number associated with name. This is a positive integer (initially set to 1) that increases by one each time the name object is updated. gen is set to 0 if the method encounters a problem and cannot retrieve the object.
%(Subsystem) The class name in parentheses denotes a shared method. GetObject can also be invoked via a Subsystem class object variable, which may be Null.
string The string name by which the subsystem-wide object is identified.
object The object variable to which the subsystem-wide object is assigned.


See also