$ListCnt: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
mNo edit summary
Line 2: Line 2:
<span class="pageSubtitle"><section begin="desc" />Number of items in $list<section end="desc" /></span>
<span class="pageSubtitle"><section begin="desc" />Number of items in $list<section end="desc" /></span>


<p class="warning">Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $ListCnt function is [[to be entered]].</p>
<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>
 
 


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 9:


The first argument is a $list identifier. This is a required argument.
The first argument is a $list identifier. This is a required argument.
==Syntax==
==Syntax==
<p class="syntax"><section begin="syntax" /> %RESULT = $ListCnt(list_identifier)
<p class="syntax"><section begin="syntax" /> %RESULT = $ListCnt(list_identifier)
Line 17: Line 16:
</p>
</p>
<p class="caption">%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="caption">%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
Line 34: Line 34:
<li>[[Japanese functions]]</li>
<li>[[Japanese functions]]</li>
<li>[[Sir2000 Field Migration Facility]]</li>
<li>[[Sir2000 Field Migration Facility]]</li>
</ul>
</ul>
   
   
Line 40: Line 39:
<p class="caption">Products authorizing $ListCnt
<p class="caption">Products authorizing $ListCnt
</p>
</p>


[[Category:$Functions|$ListCnt]]
[[Category:$Functions|$ListCnt]]

Revision as of 13:47, 9 February 2011

<section begin="desc" />Number of items in $list<section end="desc" />

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

<section begin="syntax" /> %RESULT = $ListCnt(list_identifier) <section end="syntax" />

$ListCnt Function

%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