SetGlobal (Object subroutine): Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
 
mNo edit summary
Line 1: Line 1:
{{Template:Object:SetGlobal subtitle}}
{{Template:Object:SetGlobal subtitle}}


This page is [[under construction]].
==Syntax==
==Syntax==
{{Template:Object:SetGlobal syntax}}
{{Template:Object:SetGlobal syntax}}
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th nowrap="true"><var>%(Object)</var></th>
<tr><th nowrap="true"><var>%(Object)</var></th>
<td>The class name in parentheses denotes a shared method. <var>SetGlobal</var> can also be invoked via a <var>Object</var> object variable, which may be <var>Null</var>.</td></tr>
<td>The class name in parentheses denotes a [[Notation conventions for methods#Shared methods|shared method]]. <var>SetGlobal</var> can also be invoked via an <var>Object</var> class object variable, which may be <var>Null</var>.</td></tr>
 
<tr><th>name</th>
<tr><th>name</th>
<td>string</td></tr>
<td>A string that specifies a global name that references an object.</td></tr>
 
<tr><th>source</th>
<tr><th>source</th>
<td><var>Object</var> object</td></tr>
<td>This <var>Object</var> class object variable is set by <var>SetGlobal</var> to be referenced by the global name <var class="term">name</var>.
<p>
<var class="term">source</var> can be a %variable, a structure member, or a class member inside an object.
</p></td></tr>
</table>
</table>
==Usage notes==
==Usage notes==
If <var class="term">name</var> does not reference an object, <var>GetGlobal</var> sets <var class="term">target</var> to <var>Null</var>.
==Examples==
==Examples==
See [[Global and session objects#Using system class methods to access global and session objects|Using system class methods to access global and session objects]].
==See also==
==See also==
{{Template:Object:SetGlobal footer}}
{{Template:Object:SetGlobal footer}}

Revision as of 22:54, 12 August 2014

Set global object reference (Object class)


Syntax

%(Object):SetGlobal( name, source)

Syntax terms

%(Object) The class name in parentheses denotes a shared method. SetGlobal can also be invoked via an Object class object variable, which may be Null.
name A string that specifies a global name that references an object.
source This Object class object variable is set by SetGlobal to be referenced by the global name name.

source can be a %variable, a structure member, or a class member inside an object.

Usage notes

If name does not reference an object, GetGlobal sets target to Null.

Examples

See Using system class methods to access global and session objects.

See also