$ListCnt: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
Line 11: Line 11:


==Syntax==
==Syntax==
<p class="syntax"><span class="term">%result</span> = <span class="literal">$ListCnt</span>(<span class="term">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">  
<p class="code">-5 - Required argument not specified
-5 - Required argument not specified
-6 - $List identifier invalid
-6 - $List identifier invalid
</p>
</p>
<p class="caption">$ListCnt Error Codes
<p class="caption">$ListCnt Error Codes
</p>
</p>
<p class="code">


==Products authorizing {{PAGENAMEE}}==  
==Products authorizing {{PAGENAMEE}}==  

Revision as of 13:46, 11 April 2013

Number of items in $list

Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $ListCnt function is the Count (Stringlist function).

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.

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

$ListCnt Error Codes

Products authorizing $ListCnt