Number (NamedArraylist function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (1 revision)
Line 13: Line 13:
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th><i>%num</i></th>
<tr><th>%num</th>
<td>A numeric variable to contain the number of the named ''%namrayl'' item. </td></tr>
<td>A numeric variable to contain the number of the named ''%namrayl'' item. </td></tr>
<tr><th><i>%namrayl</i></th>
<tr><th>%namrayl</th>
<td>A NamedArraylist object. </td></tr>
<td>A NamedArraylist object. </td></tr>
<tr><th><i>name</i></th>
<tr><th>name</th>
<td>A string that serves as a subscript to identify a ''%namrayl'' item. If the indicated name is not in ''%namrayl'', <tt>0</tt> is returned, regardless of the setting of [[UseDefault (NamedArraylist property)|UseDefault]].</td></tr>
<td>A string that serves as a subscript to identify a ''%namrayl'' item. If the indicated name is not in ''%namrayl'', <tt>0</tt> is returned, regardless of the setting of [[UseDefault (NamedArraylist property)|UseDefault]].</td></tr>
</table>
</table>

Revision as of 17:28, 4 February 2011

<section begin=dpl_desc/>Item number of named item<section end=dpl_desc/>

Number is a member of the NamedArraylist class.

This ReadOnly property returns the item number (ordinal) of the item that has the specified name in the NamedArraylist.

Syntax

%num = %namrayl:Number(name)

Syntax terms

%num A numeric variable to contain the number of the named %namrayl item.
%namrayl A NamedArraylist object.
name A string that serves as a subscript to identify a %namrayl item. If the indicated name is not in %namrayl, 0 is returned, regardless of the setting of UseDefault.

Usage Notes

  • If the Number property is called and there is no item on the NamedArraylist that has the indicated subscript name, a 0 is returned, regardless of the setting of UseDefault.