Number (UnicodeNamedArraylist function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Created page with "<span style="font-size:120%; color:black"><b><section begin=dpl_desc/>Item number of specified item<section end=dpl_desc/></b></span> [[Category:UnicodeNamedArraylist methods|Num...")
 
 
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<span style="font-size:120%; color:black"><b><section begin=dpl_desc/>Item number of specified item<section end=dpl_desc/></b></span>
{{Template:UnicodeNamedArraylist:Number subtitle}}
[[Category:UnicodeNamedArraylist methods|Number property]]
 
<!--DPL?? Category:UnicodeNamedArraylist methods|Number property: Item number of specified item-->
<var>Number</var> returns the item number (ordinal) of the item that has the specified subscript name in the <var>UnicodeNamedArraylist</var>.
<p>
Number is a member of the [[UnicodeNamedArraylist class]].
</p>


This ReadOnly property returns the item number (ordinal) of the item that has the
specified subscript name in the UnicodeNamedArraylist.
==Syntax==
==Syntax==
  %num = %unamrayl:Number(name)
{{Template:UnicodeNamedArraylist:Number syntax}}
===Syntax Terms===
===Syntax terms===
<dl>
<table class="syntaxTable">
<dt><i>%num</i>
<tr><th>%number</th>
<dd>A numeric variable to contain the item number of the
<td>A numeric variable to contain the item number of the specified <var class="term">uniNal</var> item. </td></tr>
specified ''%unamrayl'' item.
<tr><th>uniNal</th>
<dt><i>%unamrayl</i>
<td>A <var>UnicodeNamedArraylist</var> object. </td></tr>
<dd>A UnicodeNamedArraylist object.
<tr><th>name</th>
<dt><i>name</i>
<td>A Unicode string that serves as a subscript name to identify a <var class="term">uniNal</var> item.</td></tr>
<dd>A Unicode string
</table>
that serves as a subscript name to identify a ''%unamrayl'' item.
 
==Usage notes==
<ul><li>If <var>Number</var> is called and there is no item on the <var>UnicodeNamedArraylist</var> that has the indicated subscript, a <var class="output">0</var> is returned, regardless of the setting of <var>[[UseDefault (UnicodeNamedArraylist property)|UseDefault]]</var>.
</ul>


</dl>
==See also==
==Usage Notes==
<ul>
<ul>
<li>If the Number property is called and there is no item
<li>The <var>[[ItemByNumber_(GenericNamedArraylist_property)|ItemByNumber]]</var> property lets you retrieve or set an item using the item's ordinal number.
on the UnicodeNamedArraylist that has the indicated subscript,
<li>The <var>[[NameByNumber (UnicodeNamedArraylist function)|NameByNumber]]</var> function lets you retrieve an item's name using the item's ordinal number.
a <tt>0</tt> is returned,
regardless of the setting of [[UseDefault (UnicodeNamedArraylist property)|UseDefault]].
</ul>
</ul>
{{Template:UnicodeNamedArraylist:Number footer}}

Latest revision as of 19:19, 21 July 2011

Item number of specified name (UnicodeNamedArraylist class)


Number returns the item number (ordinal) of the item that has the specified subscript name in the UnicodeNamedArraylist.

Syntax

%number = uniNal:Number( name)

Syntax terms

%number A numeric variable to contain the item number of the specified uniNal item.
uniNal A UnicodeNamedArraylist object.
name A Unicode string that serves as a subscript name to identify a uniNal item.

Usage notes

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

See also

  • The ItemByNumber property lets you retrieve or set an item using the item's ordinal number.
  • The NameByNumber function lets you retrieve an item's name using the item's ordinal number.