$TermId: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
mNo edit summary
Line 6: Line 6:
This function returns the terminal id of the current user thread.  
This function returns the terminal id of the current user thread.  


The $TermId function accepts no arguments and returns either an 8 byte string containing the terminal id or a null string indicating that a terminal id is not available.
The $TermId function accepts no arguments, and it returns either of these:
<ul>
<li>An 8-byte string containing the terminal id.
<li>A null string indicating that a terminal id is not available.
</ul>


==Syntax==
==Syntax==
<p class="syntax">%TERM = $TermId
<p class="syntax">%term = $TermId
</p>
</p>
<p>
</p>
<p>%TERMID is set to either a null or 8-byte string.</p>


The following program displays the user's terminal id.
<p>%term is set to either a null or 8-byte string.</p>
<p class="code"> B
 
PRINT $TermId
==Example==
END
The following program displays the user's terminal ID:
<p class="code">B
PRINT $TermId
END
</p>
</p>


Line 33: Line 37:


</ul>
</ul>
<p>
</p>


[[Category:$Functions|$TermId]]
[[Category:$Functions|$TermId]]

Revision as of 22:28, 24 July 2013

Terminal ID of current user thread

Note: Most Sirius $functions have been deprecated in favor of Object Oriented methods. There is no OO equivalent for the $TermId function.

This function returns the terminal id of the current user thread.

The $TermId function accepts no arguments, and it returns either of these:

  • An 8-byte string containing the terminal id.
  • A null string indicating that a terminal id is not available.

Syntax

%term = $TermId

%term is set to either a null or 8-byte string.

Example

The following program displays the user's terminal ID:

B PRINT $TermId END

Products authorizing $TermId