NameByNumber (UnicodeNamedArraylist function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
Line 1: Line 1:
<span style="font-size:120%; color:black"><b><section begin=dpl_desc/>Name of specified item<section end=dpl_desc/></b></span>
{{Template:UnicodeNamedArraylist:NameByNumber subtitle}}
[[Category:UnicodeNamedArraylist methods|NameByNumber property]]
<!--DPL?? Category:UnicodeNamedArraylist methods|NameByNumber property: Name of specified item-->
<p>
NameByNumber is a member of the [[UnicodeNamedArraylist class]].
</p>


This ReadOnly property returns the subscript name
This ReadOnly property returns the subscript name
Line 10: Line 5:
item number (position) in the UnicodeNamedArraylist.
item number (position) in the UnicodeNamedArraylist.
==Syntax==
==Syntax==
  name = %unamrayl:NameByNumber(number)
{{Template:UnicodeNamedArraylist:NameByNumber syntax}}
===Syntax Terms===
===Syntax terms===
<dl>
<dl>
<dt><i>name</i>
<dt><i>name</i>
Line 25: Line 20:


</dl>
</dl>
==Usage Notes==
==Usage notes==
<ul>
<ul>
<li>If the NameByNumber property is being retrieved and there is no item on the
<li>If the NameByNumber property is being retrieved and there is no item on the
Line 40: Line 35:
<li>For an example using the NameByNumber method, see [[UnicodeNamedArraylist class]].
<li>For an example using the NameByNumber method, see [[UnicodeNamedArraylist class]].
</ul>
</ul>
==See also==
{{Template:UnicodeNamedArraylist:NameByNumber footer}}

Revision as of 19:43, 28 January 2011

Name of specified item (UnicodeNamedArraylist class)


This ReadOnly property returns the subscript name of the item that has the specified item number (position) in the UnicodeNamedArraylist.

Syntax

%name = uniNal:NameByNumber( number)

Syntax terms

name
A Unicode string to contain the subscript name of the specified fnamrayl item.
%unamrayl
A UnicodeNamedArraylist object.
number
A whole number greater than 0 to identify a %unamrayl item by its position (item number) in the UnicodeNamedArraylist. If number is greater than the number of items in %unamrayl, or if it is less than or equal to zero, the request is cancelled.

Usage notes

  • If the NameByNumber property is being retrieved and there is no item on the UnicodeNamedArraylist that has the indicated item number, the result is one of the following actions:
    • The request is cancelled if the UseDefault property value is False.
    • The Default value is returned if the UseDefault property is True.
  • Number lets you retrieve an item's content using its item number.
  • For an example using the NameByNumber method, see UnicodeNamedArraylist class.

See also