Number (NamedArraylist function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (match syntax table to diagram, tags and edits)
m (update syntax terms to match corrected template)
Line 11: Line 11:
<tr><th>%nal</th>
<tr><th>%nal</th>
<td>A <var>NamedArraylist</var> object. </td></tr>
<td>A <var>NamedArraylist</var> object. </td></tr>
<tr><th>string</th>
<tr><th>name</th>
<td>A string that serves as a subscript to identify a <var class="term">nal</var> item. If the indicated name is not in <var class="term">nal</var>, <var class="output">0</var> is returned, regardless of the setting of <var>[[UseDefault (NamedArraylist property)|UseDefault]]</var>.</td></tr>
<td>A string that serves as a subscript to identify a <var class="term">nal</var> item. If the indicated name is not in <var class="term">nal</var>, <var class="output">0</var> is returned, regardless of the setting of <var>[[UseDefault (NamedArraylist property)|UseDefault]]</var>.</td></tr>
</table>
</table>

Revision as of 04:08, 11 March 2011

Item number of specified name (NamedArraylist class)


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

Syntax

%number = nal:Number( name)

Syntax terms

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

Usage notes

  • If Number 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.

See also