NameByNumber (FloatNamedArraylist function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (update syntax terms to match corrected template)
mNo edit summary
Line 1: Line 1:
{{Template:FloatNamedArraylist:NameByNumber subtitle}}
{{Template:FloatNamedArraylist:NameByNumber subtitle}}


The <var>NameByNumber</var> ReadOnly property returns the "name" (in this case a numerical subscript) of the item that has the specified item number (position) in the <var>FloatNamedArraylist</var>.
<var>NameByNumber</var> returns the "name" (in this case a numerical subscript) of the item that has the specified item number (position) in the <var>FloatNamedArraylist</var>.


==Syntax==
==Syntax==
Line 22: Line 22:


==See also==
==See also==
<ul><li><var>[[Number (FloatNamedArraylist property)|Number]]</var> lets you retrieve an item's content using its item number.</ul>
<ul>
<li><var>[[Number (FloatNamedArraylist property)|Number]]</var> lets you retrieve an item's ordinal number using its numeric subscript.
<li><var>[[ItemByNumber_(GenericNamedArraylist_property)|ItemByNumber]]</var> lets you retrieve or set an item using the item's ordinal number.
</ul>
{{Template:FloatNamedArraylist:NameByNumber footer}}
{{Template:FloatNamedArraylist:NameByNumber footer}}

Revision as of 19:44, 21 July 2011

Name of specified item number (FloatNamedArraylist class)


NameByNumber returns the "name" (in this case a numerical subscript) of the item that has the specified item number (position) in the FloatNamedArraylist.

Syntax

%subscript = fltNal:NameByNumber( number)

Syntax terms

%subscript A numeric variable to contain the subscript of the specified fltNal item.
fltNal A FloatNamedArraylist object.
number A whole number greater than 0 to identify a fltNal item by its position (item number) in the numerically ordered FloatNamedArraylist. If number is greater than the number of items in fltNal, 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 FloatNamedArraylist 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.

See also

  • Number lets you retrieve an item's ordinal number using its numeric subscript.
  • ItemByNumber lets you retrieve or set an item using the item's ordinal number.