$TermId: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
(Automatically generated page update)
 
(21 intermediate revisions by 3 users not shown)
Line 2: Line 2:
<span class="pageSubtitle">Terminal ID of current user thread</span>
<span class="pageSubtitle">Terminal ID of current user thread</span>


<p class="warning">Most Sirius $functions have been deprecated in favor of Object Oriented methods. There is no OO equivalent for the $TermId function.</p>
<p class="warn"><b>Note: </b>Many $functions have been deprecated in favor of Object Oriented methods. There is no OO equivalent for the $TermId function.</p>


This function returns the terminal id of the current user thread.
The <var>$TermId</var> function accepts no arguments, and it returns either of these:
 
<ul>
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.
<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"><section begin="syntax" />%TERM = $TermId
<p class="syntax">%term = $TermId
<section end="syntax" /></p>
<p class="caption">$TermId Function
</p>
</p>
<p class="caption">%TERMID is set to either a null or 8-byte string.</p>


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


<h2>Products authorizing {{PAGENAMEE}}</h2><ul class="smallAndTightList">
==Products authorizing {{PAGENAMEE}}==
<li>[[Sirius functions]]</li>
<ul class="smallAndTightList">
<li>[[List of $functions|Sirius functions]]</li>
<li>[[Fast/Unload User Language Interface]]</li>
<li>[[Fast/Unload User Language Interface]]</li>
<li>[[Janus Open Client]]</li>
<li>[[Media:JoclrNew.pdf|Janus Open Client]]</li>
<li>[[Janus Open Server]]</li>
<li>[[Media:JosrvrNew.pdf|Janus Open Server]]</li>
<li>[[Janus Sockets]]</li>
<li>[[Janus Sockets]]</li>
<li>[[Janus Web Server]]</li>
<li>[[Janus Web Server]]</li>
<li>[[Japanese functions]]</li>
<li>Japanese functions</li>
<li>[[Sir2000 Field Migration Facility]]</li>
<li>[[Media:SirfieldNew.pdf|Sir2000 Field Migration Facility]]</li>
 
</ul>
</ul>
<p>
</p>


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

Latest revision as of 23:23, 20 September 2018

Terminal ID of current user thread

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

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 an 8-byte string.

Example

The following program displays the user's terminal ID:

B PRINT $TermId END

Products authorizing $TermId