$ListCnt: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
(Automatically generated page update)
 
(17 intermediate revisions by 2 users not shown)
Line 2: Line 2:
<span class="pageSubtitle">Number of items in $list</span>
<span class="pageSubtitle">Number of items in $list</span>


<p class="warning">Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $ListCnt function is the [[Count (Stringlist function)]].</p>
<p class="warn"><b>Note: </b>Many $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $ListCnt function is <var>[[Count (Stringlist function)|Count]]</var>.</p>


This function returns an integer that, if positive, contains the number of items in the specified $list and if negative indicates an error.  
This function returns an integer that, if positive, contains the number of items in the specified $list and if negative indicates an error.  
Line 11: Line 11:


==Syntax==
==Syntax==
<p class="syntax">%result = $ListCnt(list_identifier)
<p class="syntax"><span class="term">%result</span> = <span class="literal">$ListCnt</span>(<span class="term">list_identifier</span>)
</p>
</p>
<p>
<p>
</p>
<var class="term">%result</var> is set either to the number of items in the indicated $list, or to a negative number if an error has occurred.</p>
<p>%result is set either to the number of items in the indicated $list, or to a negative number if an error has occurred.</p>


<p class="code">  
===Error codes===
-5 - Required argument not specified
<p class="code">-5 - Required argument not specified
-6 - $List identifier invalid
-6 - $List identifier invalid
</p>
<p class="caption">$ListCnt Error Codes
</p>
</p>
<p class="code">


==Products authorizing {{PAGENAMEE}}==  
==Products authorizing {{PAGENAMEE}}==  
<ul class="smallAndTightList">
<ul class="smallAndTightList">
<li>[[Sirius functions]]</li>
<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>
</p>
[[Category:$Functions|$ListCnt]]
[[Category:$Functions|$ListCnt]]

Latest revision as of 22:51, 20 September 2018

Number of items in $list

Note: Many $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $ListCnt function is Count.

This function returns an integer that, if positive, contains the number of items in the specified $list and if negative indicates an error.

The $ListCnt function accepts one argument and returns a numeric result.

The first argument is a $list identifier. This is a required argument.

Syntax

%result = $ListCnt(list_identifier)

%result is set either to the number of items in the indicated $list, or to a negative number if an error has occurred.

Error codes

-5 - Required argument not specified -6 - $List identifier invalid

Products authorizing $ListCnt