DiscardGlobals (Object subroutine): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:


<tr><th>matchString</th>
<tr><th>matchString</th>
<td>A "wildcard" string that is applied to the set of global names. Objects referenced by global names matched by <var class="term">matchString</var> are discarded. </td></tr>
<td>A "wildcard" string that is applied to the set of global names. Objects referenced by global names matched by <var class="term">matchString</var> are discarded.  
<p>
If the <var class="term">matchString</var> value is an asterisk (<tt>*</tt>), all objects referenced by global names are discarded.</p></td></tr>
</table>
</table>


==Usage notes==
==Usage notes==
If any global names matched by <var class="term">matchString</var> do not reference an object, this method does nothing.
If no global names matched by <var class="term">matchString</var> reference an object, this method does nothing.


==Examples==
==Examples==

Latest revision as of 19:03, 7 August 2014

Discard global objects (Object class)


Syntax

%(Object):DiscardGlobals( matchString)

Syntax terms

%(Object) The class name in parentheses denotes a shared method. DiscardGlobals can also be invoked via an Object class object variable, which may be Null.
matchString A "wildcard" string that is applied to the set of global names. Objects referenced by global names matched by matchString are discarded.

If the matchString value is an asterisk (*), all objects referenced by global names are discarded.

Usage notes

If no global names matched by matchString reference an object, this method does nothing.

Examples

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

See also