UserNumber (Daemon property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Template:Daemon:UserNumber subtitle}}
{{Template:Daemon:UserNumber subtitle}}
 
<var>UserNumber</var>, primarily useful for debugging, returns the user number of the thread associated with the <var>Daemon</var> object. The method takes no arguments and returns a numeric value.
UserNumber is a member of the [[Daemon class]]
 
This method, primarily useful for debugging, returns the user number of the thread associated with the daemon object. The method takes no arguments and returns a numeric value.


==Syntax==
==Syntax==
{{Template:Daemon:UserNumber syntax}}
{{Template:Daemon:UserNumber syntax}}
===Syntax terms===
===Syntax terms===
<dl>
<table class="syntaxTable">
<dt>%num
<tr><th>%number</th>
<dd>A float variable to contain the returned user number.  
<td>A float variable to contain the returned user number.</td></tr>
<dt>%daem
<tr><th>%daemon</th>
<dd>A previously defined Daemon object.  
<td>A <var>Daemon</var> object.</td></tr>
</dl>
</table>


==See also==
==See also==
{{Template:Daemon:UserNumber footer}}
These methods return the user number of the creator of the daemon thread from which the methods are issued:
<ul>
<ul>
<li>[[MasterNumber (Daemon property)]]  
<li><var>[[MasterNumber (Daemon property)|MasterNumber]]</var> returns the user number of the master thread, the thread that ultimately created and controls the thread from which this method is being invoked.
<li>[[ParentNumber (Daemon property)]]
<li><var>[[ParentNumber (Daemon property)|ParentNumber]]</var> returns the user number of the parent thread, the thread that created the current thread from which this method is being invoked.
</ul>
</ul>
{{Template:Daemon:UserNumber footer}}

Latest revision as of 20:46, 8 July 2012

User number of the thread associated with this Daemon (Daemon class)

UserNumber, primarily useful for debugging, returns the user number of the thread associated with the Daemon object. The method takes no arguments and returns a numeric value.

Syntax

%number = daemon:UserNumber

Syntax terms

%number A float variable to contain the returned user number.
%daemon A Daemon object.

See also

  • MasterNumber returns the user number of the master thread, the thread that ultimately created and controls the thread from which this method is being invoked.
  • ParentNumber returns the user number of the parent thread, the thread that created the current thread from which this method is being invoked.